| Index: device/bluetooth/bluetooth_device_chromeos.cc
|
| diff --git a/device/bluetooth/bluetooth_device_chromeos.cc b/device/bluetooth/bluetooth_device_chromeos.cc
|
| index aa1d66b1859e744bde5eec6a7e369a3a66d8064b..d0e45faa2075d85695131c7ac8f2c6dc24448fb1 100644
|
| --- a/device/bluetooth/bluetooth_device_chromeos.cc
|
| +++ b/device/bluetooth/bluetooth_device_chromeos.cc
|
| @@ -25,6 +25,8 @@ using device::BluetoothDevice;
|
|
|
| namespace {
|
|
|
| +const char kNotImplemented[] = "Function not yet implemented";
|
| +
|
| // Histogram enumerations for pairing results.
|
| enum UMAPairingResult {
|
| UMA_PAIRING_RESULT_SUCCESS,
|
| @@ -227,7 +229,7 @@ void BluetoothDeviceChromeOS::GetServiceRecords(
|
| const ServiceRecordsCallback& callback,
|
| const ErrorCallback& error_callback) {
|
| // TODO(keybuk): not implemented; remove
|
| - error_callback.Run();
|
| + error_callback.Run(kNotImplemented);
|
| }
|
|
|
| void BluetoothDeviceChromeOS::ProvidesServiceWithName(
|
| @@ -394,14 +396,14 @@ void BluetoothDeviceChromeOS::SetOutOfBandPairingData(
|
| const base::Closure& callback,
|
| const ErrorCallback& error_callback) {
|
| // TODO(keybuk): implement
|
| - error_callback.Run();
|
| + error_callback.Run(kNotImplemented);
|
| }
|
|
|
| void BluetoothDeviceChromeOS::ClearOutOfBandPairingData(
|
| const base::Closure& callback,
|
| const ErrorCallback& error_callback) {
|
| // TODO(keybuk): implement
|
| - error_callback.Run();
|
| + error_callback.Run(kNotImplemented);
|
| }
|
|
|
| BluetoothPairingChromeOS* BluetoothDeviceChromeOS::BeginPairing(
|
| @@ -564,7 +566,7 @@ void BluetoothDeviceChromeOS::OnDisconnectError(
|
| const std::string& error_message) {
|
| LOG(WARNING) << object_path_.value() << ": Failed to disconnect device: "
|
| << error_name << ": " << error_message;
|
| - error_callback.Run();
|
| + error_callback.Run(error_message);
|
| }
|
|
|
| void BluetoothDeviceChromeOS::OnForgetError(
|
| @@ -573,7 +575,7 @@ void BluetoothDeviceChromeOS::OnForgetError(
|
| const std::string& error_message) {
|
| LOG(WARNING) << object_path_.value() << ": Failed to remove device: "
|
| << error_name << ": " << error_message;
|
| - error_callback.Run();
|
| + error_callback.Run(error_message);
|
| }
|
|
|
| void BluetoothDeviceChromeOS::OnConnectProfile(
|
| @@ -596,7 +598,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
|
|
|