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

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

Issue 180163009: chrome.bluetooth API improvements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ChromeOS Full 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 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);

Powered by Google App Engine
This is Rietveld 408576698