diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-15 21:44:26 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-15 21:44:26 +0000 |
commit | 2f22bbc93302fb84904e029bec7bab83f92b071a (patch) | |
tree | bf4ac639ad07dee22d6ff4937d8e582a7c9a0fdc /content | |
parent | 8dfe3531ea5881381c7810aabcdbb52e1fa7bb8a (diff) | |
download | chromium_src-2f22bbc93302fb84904e029bec7bab83f92b071a.zip chromium_src-2f22bbc93302fb84904e029bec7bab83f92b071a.tar.gz chromium_src-2f22bbc93302fb84904e029bec7bab83f92b071a.tar.bz2 |
Remove unused parameter in GpuProcessHost HostIsValid.
Review URL: http://codereview.chromium.org/8963002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@114703 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/browser/gpu/gpu_process_host.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/content/browser/gpu/gpu_process_host.cc b/content/browser/gpu/gpu_process_host.cc index f6796a8..d620a21 100644 --- a/content/browser/gpu/gpu_process_host.cc +++ b/content/browser/gpu/gpu_process_host.cc @@ -160,7 +160,7 @@ class GpuMainThread : public base::Thread { DISALLOW_COPY_AND_ASSIGN(GpuMainThread); }; -static bool HostIsValid(int host_id, GpuProcessHost* host) { +static bool HostIsValid(GpuProcessHost* host) { if (!host) return false; @@ -194,7 +194,7 @@ GpuProcessHost* GpuProcessHost::GetForRenderer( IDMap<GpuProcessHost>::iterator it(g_hosts_by_id.Pointer()); GpuProcessHost *host = it.GetCurrentValue(); - if (HostIsValid(it.GetCurrentKey(), host)) + if (HostIsValid(host)) return host; } @@ -234,7 +234,7 @@ GpuProcessHost* GpuProcessHost::FromID(int host_id) { return NULL; GpuProcessHost *host = g_hosts_by_id.Pointer()->Lookup(host_id); - if (HostIsValid(host_id, host)) + if (HostIsValid(host)) return host; return NULL; |