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

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

Issue 227493006: Revert 262175 "* Replace "read" method with onReceiveXxx events." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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: trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_private_api.cc
===================================================================
--- trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_private_api.cc (revision 262179)
+++ trunk/src/chrome/browser/extensions/api/bluetooth/bluetooth_private_api.cc (working copy)
@@ -41,13 +41,15 @@
}
void BluetoothPrivateAPI::OnListenerAdded(const EventListenerInfo& details) {
- BluetoothAPI::Get(browser_context_)->event_router()->AddPairingDelegate(
- details.extension_id);
+ BluetoothAPI::Get(browser_context_)
+ ->bluetooth_event_router()
+ ->AddPairingDelegate(details.extension_id);
}
void BluetoothPrivateAPI::OnListenerRemoved(const EventListenerInfo& details) {
- BluetoothAPI::Get(browser_context_)->event_router()->RemovePairingDelegate(
- details.extension_id);
+ BluetoothAPI::Get(browser_context_)
+ ->bluetooth_event_router()
+ ->RemovePairingDelegate(details.extension_id);
}
namespace api {
@@ -220,7 +222,7 @@
const bt_private::SetPairingResponseOptions& options = params->options;
BluetoothEventRouter* router =
- BluetoothAPI::Get(browser_context())->event_router();
+ BluetoothAPI::Get(browser_context())->bluetooth_event_router();
if (!router->GetPairingDelegate(extension_id())) {
SetError(kPairingNotEnabled);
SendResponse(false);

Powered by Google App Engine
This is Rietveld 408576698