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

Unified Diff: chrome/browser/extensions/api/bluetooth/bluetooth_private_api.cc

Issue 238633009: cleanup: Use EventRouter instead of ExtensionSystem::Get->event_router() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile error for chromeos build. Created 6 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/api/bluetooth/bluetooth_private_api.cc
diff --git a/chrome/browser/extensions/api/bluetooth/bluetooth_private_api.cc b/chrome/browser/extensions/api/bluetooth/bluetooth_private_api.cc
index 6340d4819605332245907c85e1d380e0e5cafdd4..1ac35ebe0e965ab3ba046f0bc40633826da63ee0 100644
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_private_api.cc
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_private_api.cc
@@ -12,7 +12,6 @@
#include "chrome/common/extensions/api/bluetooth_private.h"
#include "device/bluetooth/bluetooth_adapter.h"
#include "device/bluetooth/bluetooth_adapter_factory.h"
-#include "extensions/browser/extension_system.h"
namespace bt_private = extensions::api::bluetooth_private;
@@ -29,15 +28,14 @@ BluetoothPrivateAPI::GetFactoryInstance() {
BluetoothPrivateAPI::BluetoothPrivateAPI(content::BrowserContext* context)
: browser_context_(context) {
- ExtensionSystem::Get(browser_context_)->event_router()->RegisterObserver(
- this, bt_private::OnPairing::kEventName);
+ EventRouter::Get(browser_context_)
+ ->RegisterObserver(this, bt_private::OnPairing::kEventName);
}
BluetoothPrivateAPI::~BluetoothPrivateAPI() {}
void BluetoothPrivateAPI::Shutdown() {
- ExtensionSystem::Get(browser_context_)->event_router()->UnregisterObserver(
- this);
+ EventRouter::Get(browser_context_)->UnregisterObserver(this);
}
void BluetoothPrivateAPI::OnListenerAdded(const EventListenerInfo& details) {

Powered by Google App Engine
This is Rietveld 408576698