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

Unified Diff: device/bluetooth/bluetooth_device_chromeos.cc

Issue 180163009: chrome.bluetooth API improvements. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unused code. Created 6 years, 9 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/bluetooth_device_chromeos.cc
diff --git a/device/bluetooth/bluetooth_device_chromeos.cc b/device/bluetooth/bluetooth_device_chromeos.cc
index a7c7b83f10f7918fb3cc3a0e0536a773de5c617e..cefc27d1589e75a41ae9e30b2c63315dcd7a5e75 100644
--- a/device/bluetooth/bluetooth_device_chromeos.cc
+++ b/device/bluetooth/bluetooth_device_chromeos.cc
@@ -353,7 +353,7 @@ void BluetoothDeviceChromeOS::ConnectToService(
void BluetoothDeviceChromeOS::ConnectToProfile(
device::BluetoothProfile* profile,
const base::Closure& callback,
- const ErrorCallback& error_callback) {
+ const ConnectToProfileErrorCallback& error_callback) {
BluetoothProfileChromeOS* profile_chromeos =
static_cast<BluetoothProfileChromeOS*>(profile);
VLOG(1) << object_path_.value() << ": Connecting profile: "
@@ -573,7 +573,7 @@ void BluetoothDeviceChromeOS::OnConnectProfile(
void BluetoothDeviceChromeOS::OnConnectProfileError(
device::BluetoothProfile* profile,
- const ErrorCallback& error_callback,
+ const ConnectToProfileErrorCallback& error_callback,
const std::string& error_name,
const std::string& error_message) {
BluetoothProfileChromeOS* profile_chromeos =
@@ -581,7 +581,7 @@ void BluetoothDeviceChromeOS::OnConnectProfileError(
VLOG(1) << object_path_.value() << ": Profile connection failed: "
<< profile_chromeos->uuid() << ": "
<< error_name << ": " << error_message;
- error_callback.Run();
+ error_callback.Run(error_message);
}
} // namespace chromeos

Powered by Google App Engine
This is Rietveld 408576698