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

Unified Diff: chrome/browser/extensions/extension_event_router.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_event_router.cc
diff --git a/chrome/browser/extensions/extension_event_router.cc b/chrome/browser/extensions/extension_event_router.cc
index 78993ed01b0f5d308b66a43bcad3598aa5ecd185..908c06c49e977666fc967c3287820c5ea7e0af65 100644
--- a/chrome/browser/extensions/extension_event_router.cc
+++ b/chrome/browser/extensions/extension_event_router.cc
@@ -423,6 +423,9 @@ void ExtensionEventRouter::OnExtensionEventAck(
void ExtensionEventRouter::DispatchPendingEvent(
const linked_ptr<ExtensionEvent>& event, ExtensionHost* host) {
+ if (!host)
+ return;
+
ListenerProcess listener(host->render_process_host(),
host->extension()->id());
if (listeners_[event->event_name].count(listener) > 0u)
« no previous file with comments | « chrome/browser/extensions/api/runtime/runtime_api.cc ('k') | chrome/browser/extensions/extension_message_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698