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) { |