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

Unified Diff: chrome/browser/child_process_host.cc

Issue 1546001: Split GpuProcessHost into GpuProcessHostUIShim, which runs on the UI... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 9 months 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 | « no previous file | chrome/browser/gpu_process_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/child_process_host.cc
===================================================================
--- chrome/browser/child_process_host.cc (revision 43024)
+++ chrome/browser/child_process_host.cc (working copy)
@@ -80,7 +80,8 @@
ChildProcessHost::~ChildProcessHost() {
Singleton<ChildProcessList>::get()->remove(this);
- resource_dispatcher_host_->CancelRequestsForProcess(id());
+ if (resource_dispatcher_host_)
+ resource_dispatcher_host_->CancelRequestsForProcess(id());
}
// static
@@ -217,9 +218,12 @@
#endif
bool msg_is_ok = true;
- bool handled = host_->resource_dispatcher_host_->OnMessageReceived(
- msg, host_, &msg_is_ok);
+ bool handled = false;
+ if (host_->resource_dispatcher_host_)
+ host_->resource_dispatcher_host_->OnMessageReceived(
+ msg, host_, &msg_is_ok);
+
if (!handled) {
if (msg.type() == PluginProcessHostMsg_ShutdownRequest::ID) {
// Must remove the process from the list now, in case it gets used for a
« no previous file with comments | « no previous file | chrome/browser/gpu_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698