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

Unified Diff: chrome/browser/extensions/extension_message_service.cc

Issue 10082019: Have LazyBackgroundTaskQueue notify consumers when the transient page fails to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yoyo Created 8 years, 8 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
Index: chrome/browser/extensions/extension_message_service.cc
diff --git a/chrome/browser/extensions/extension_message_service.cc b/chrome/browser/extensions/extension_message_service.cc
index 1cf132a22ba54a42a2b791ad4927fe815d843502..ccb555e958f3f27a2915397a4b5acd945f0aa62a 100644
--- a/chrome/browser/extensions/extension_message_service.cc
+++ b/chrome/browser/extensions/extension_message_service.cc
@@ -442,6 +442,9 @@ void ExtensionMessageService::PendingOpenChannel(
const OpenChannelParams& params_in,
int source_process_id,
ExtensionHost* host) {
+ if (!host)
+ return; // TODO(mpcomplete): notify source of disconnect?
+
// Re-lookup the source process since it may no longer be valid.
OpenChannelParams params = params_in;
params.source = content::RenderProcessHost::FromID(source_process_id);
« no previous file with comments | « chrome/browser/extensions/extension_message_service.h ('k') | chrome/browser/extensions/lazy_background_task_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698