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
ScriptableHandle* ScriptableHandle::NewDescHandle(
    DescBasedHandle* desc_handle) {
  PLUGIN_PRINTF(("ScriptableHandle::NewDescHandle (desc_handle=%p)\n",
                 static_cast<void*>(desc_handle)));
  if (desc_handle == NULL) {
    return NULL;
  }
  ScriptableHandle* scriptable_handle =
      new(std::nothrow) ScriptableHandle(desc_handle);
  if (scriptable_handle == NULL) {
    return NULL;
  }
  PLUGIN_PRINTF(("ScriptableHandle::NewDescHandle (return %p)\n",
                 static_cast<void*>(scriptable_handle)));
  return scriptable_handle;
}

ScriptableHandle* ScriptableHandle::NewDescHandle(
    DescBasedHandle* desc_handle) {
  PLUGIN_PRINTF(("ScriptableHandle::NewDescHandle (desc_handle=%p)\n",
                 static_cast<void*>(desc_handle)));
  if (desc_handle == NULL) {
    return NULL;
  }
  ScriptableHandle* scriptable_handle =
      new(std::nothrow) ScriptableHandle(desc_handle);
  if (scriptable_handle == NULL) {
    return NULL;
  }
  PLUGIN_PRINTF(("ScriptableHandle::NewDescHandle (return %p)\n",
                 static_cast<void*>(scriptable_handle)));
  return scriptable_handle;
}
