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

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: 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
Index: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index e2381e731014bdf8e762a256b30ddc9ea9696286..860581bd07b24329eef4f49af2512e4eb32c12bb 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -556,6 +556,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.

Powered by Google App Engine
This is Rietveld 408576698