Coverity; Fixing pass by value bugs.
CID=101466, 101464, 101494, 101495, 101496, 101497

BUG=NONE
TEST=NONE

Review URL: http://codereview.chromium.org/8956046

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115399 0039d316-1c4b-4281-b951-d872f2087c98
void ScriptableHandle::SetProperty(const pp::Var& name,
                                   const pp::Var& value,
                                   pp::Var* exception) {
  PLUGIN_PRINTF(("ScriptableHandle::SetProperty (name=%s, value=%s)\n",
                 name.DebugString().c_str(), value.DebugString().c_str()));
  if (plugin_ == NULL) {
    return;
  }
  std::vector<pp::Var> args;
  args.push_back(pp::Var(pp::Var::DontManage(), value.pp_var()));
  Invoke(plugin_,
         PROPERTY_SET,
         NameAsString(name),
         "SetProperty",
         args,
         exception);
  std::string exception_string("NULL");
  if (!exception->is_undefined()) {
    exception_string = exception->DebugString();
  }
  PLUGIN_PRINTF(("ScriptableHandle::SetProperty (exception=%s)\n",
                 exception_string.c_str()));
}

void ScriptableHandle::SetProperty(const pp::Var& name,
                                   const pp::Var& value,
                                   pp::Var* exception) {
  PLUGIN_PRINTF(("ScriptableHandle::SetProperty (name=%s, value=%s)\n",
                 name.DebugString().c_str(), value.DebugString().c_str()));
  if (plugin_ == NULL) {
    return;
  }
  std::vector<pp::Var> args;
  args.push_back(pp::Var(pp::Var::DontManage(), value.pp_var()));
  Invoke(plugin_,
         PROPERTY_SET,
         NameAsString(name),
         "SetProperty",
         args,
         exception);
  std::string exception_string("NULL");
  if (!exception->is_undefined()) {
    exception_string = exception->DebugString();
  }
  PLUGIN_PRINTF(("ScriptableHandle::SetProperty (exception=%s)\n",
                 exception_string.c_str()));
}
