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

Unified Diff: chrome/browser/automation/automation_provider.cc

Issue 155707: Changed the extension.connect() API not to broadcast to all tabs. Added a (Closed)
Patch Set: review comments Created 11 years, 5 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/automation/extension_port_container.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/automation/automation_provider.cc
diff --git a/chrome/browser/automation/automation_provider.cc b/chrome/browser/automation/automation_provider.cc
index ed4fd467770978842f12ff5c8b352f6d3bfd1f45..1ce2c872c06840cf59a20802a7dc32e29b0c4ebb 100644
--- a/chrome/browser/automation/automation_provider.cc
+++ b/chrome/browser/automation/automation_provider.cc
@@ -2730,8 +2730,10 @@ bool AutomationProvider::InterceptBrowserEventMessageFromExternalHost(
return false;
}
- ExtensionMessageService::GetInstance(profile()->GetRequestContext())->
- DispatchEventToRenderers(event_name.c_str(), json_args);
+ if (profile()->GetExtensionMessageService()) {
+ profile()->GetExtensionMessageService()->
+ DispatchEventToRenderers(event_name.c_str(), json_args);
+ }
return true;
}
« no previous file with comments | « no previous file | chrome/browser/automation/extension_port_container.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698