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

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

Issue 11368145: Lazy-creates BluetoothAdapter in ExtensionBluetoothEventRouter (EBEE). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use GetMutableAdapter Created 8 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 | « chrome/browser/extensions/extension_service.h ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index 9442e65cc7ef42bd1dc9aaeb1dd80b9d90748062..c18939629023a8479c2f0d9d13b267cc74dc97c0 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -554,6 +554,18 @@ void ExtensionService::InitEventRouters() {
event_routers_initialized_ = true;
}
+void ExtensionService::NotifyExtensionEventRoutersOnListenerAdded(
+ const std::string& event_name) {
+ if (bluetooth_event_router_.get())
+ bluetooth_event_router_->OnEventListenerAdded(event_name);
+}
+
+void ExtensionService::NotifyExtensionEventRoutersOnListenerRemoved(
+ const std::string& event_name) {
+ if (bluetooth_event_router_.get())
+ bluetooth_event_router_->OnEventListenerRemoved(event_name);
+}
+
void ExtensionService::OnProfileSyncServiceShutdown() {
// TODO(akalin): Move this block to Shutdown() once
// http://crbug.com/153827 is fixed.
« no previous file with comments | « chrome/browser/extensions/extension_service.h ('k') | chrome/chrome_tests_unit.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698