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 482f7bf23a45d4d2131be58762f780b7cac5b9b5..da1711e62f7d63f80facba0819b3bea98221b55e 100644 |
--- a/chrome/browser/extensions/api/bluetooth/bluetooth_private_api.cc |
+++ b/chrome/browser/extensions/api/bluetooth/bluetooth_private_api.cc |
@@ -41,15 +41,13 @@ void BluetoothPrivateAPI::Shutdown() { |
} |
void BluetoothPrivateAPI::OnListenerAdded(const EventListenerInfo& details) { |
- BluetoothAPI::Get(browser_context_) |
- ->bluetooth_event_router() |
- ->AddPairingDelegate(details.extension_id); |
+ BluetoothAPI::Get(browser_context_)->event_router()->AddPairingDelegate( |
+ details.extension_id); |
} |
void BluetoothPrivateAPI::OnListenerRemoved(const EventListenerInfo& details) { |
- BluetoothAPI::Get(browser_context_) |
- ->bluetooth_event_router() |
- ->RemovePairingDelegate(details.extension_id); |
+ BluetoothAPI::Get(browser_context_)->event_router()->RemovePairingDelegate( |
+ details.extension_id); |
} |
namespace api { |
@@ -222,7 +220,7 @@ bool BluetoothPrivateSetPairingResponseFunction::DoWork( |
const bt_private::SetPairingResponseOptions& options = params->options; |
BluetoothEventRouter* router = |
- BluetoothAPI::Get(browser_context())->bluetooth_event_router(); |
+ BluetoothAPI::Get(browser_context())->event_router(); |
if (!router->GetPairingDelegate(extension_id())) { |
SetError(kPairingNotEnabled); |
SendResponse(false); |