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

Unified Diff: device/bluetooth/bluez/bluetooth_advertisement_bluez.cc

Issue 2353133005: Add the chrome.bluetoothLowEnergy.setAdvertisingInterval API. (Closed)
Patch Set: . Created 4 years, 3 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: device/bluetooth/bluez/bluetooth_advertisement_bluez.cc
diff --git a/device/bluetooth/bluez/bluetooth_advertisement_bluez.cc b/device/bluetooth/bluez/bluetooth_advertisement_bluez.cc
index 50fcdff41f24dce7cb31c05c8fd5465576b1bf37..d03fd954b132412fd3f541ea2a364b65667f7a55 100644
--- a/device/bluetooth/bluez/bluetooth_advertisement_bluez.cc
+++ b/device/bluetooth/bluez/bluetooth_advertisement_bluez.cc
@@ -47,8 +47,7 @@ device::BluetoothAdvertisement::ErrorCode GetErrorCodeFromErrorStrings(
}
void RegisterErrorCallbackConnector(
- const device::BluetoothAdapter::CreateAdvertisementErrorCallback&
- error_callback,
+ const device::BluetoothAdapter::AdvertisementErrorCallback& error_callback,
const std::string& error_name,
const std::string& error_message) {
LOG(ERROR) << "Error while registering advertisement. error_name = "
@@ -57,8 +56,7 @@ void RegisterErrorCallbackConnector(
}
void UnregisterErrorCallbackConnector(
- const device::BluetoothAdapter::CreateAdvertisementErrorCallback&
- error_callback,
+ const device::BluetoothAdapter::AdvertisementErrorCallback& error_callback,
const std::string& error_name,
const std::string& error_message) {
LOG(WARNING) << "Error while unregistering advertisement. error_name = "
@@ -95,7 +93,7 @@ BluetoothAdvertisementBlueZ::BluetoothAdvertisementBlueZ(
void BluetoothAdvertisementBlueZ::Register(
const base::Closure& success_callback,
- const device::BluetoothAdapter::CreateAdvertisementErrorCallback&
+ const device::BluetoothAdapter::AdvertisementErrorCallback&
error_callback) {
DCHECK(bluez::BluezDBusManager::Get());
bluez::BluezDBusManager::Get()

Powered by Google App Engine
This is Rietveld 408576698