Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(586)

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 2514153002: content: Remove some unused code. (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/common/child_process_host_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_message_filter.cc
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index 1db28b0a214da121e16d8ba6f4039108730c1f6f..89e04e207f4fc5e979f595edb24b13fb2ba5a81b 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -144,7 +144,6 @@ RenderMessageFilter::RenderMessageFilter(
resource_context_(browser_context->GetResourceContext()),
render_widget_helper_(render_widget_helper),
dom_storage_context_(dom_storage_context),
- gpu_process_id_(0),
render_process_id_(render_process_id),
media_internals_(media_internals),
cache_storage_context_(cache_storage_context),
@@ -609,16 +608,12 @@ void RenderMessageFilter::OnEstablishGpuChannel(
DCHECK_CURRENTLY_ON(BrowserThread::IO);
std::unique_ptr<IPC::Message> reply(reply_ptr);
- GpuProcessHost* host = GpuProcessHost::FromID(gpu_process_id_);
+ GpuProcessHost* host =
+ GpuProcessHost::Get(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED);
if (!host) {
- host = GpuProcessHost::Get(GpuProcessHost::GPU_PROCESS_KIND_SANDBOXED);
- if (!host) {
- reply->set_reply_error();
- Send(reply.release());
- return;
- }
-
- gpu_process_id_ = host->host_id();
+ reply->set_reply_error();
+ Send(reply.release());
+ return;
}
bool preempts = false;
« no previous file with comments | « content/browser/renderer_host/render_message_filter.h ('k') | content/common/child_process_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698