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

Unified Diff: device/bluetooth/bluetooth_low_energy_device_mac.mm

Issue 2745323002: Adding std::ostream& operator<<(std::ostream& out, NSError* error) (Closed)
Patch Set: Moving operator<< to bluetooth_adapter_mac.mm Created 3 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_low_energy_device_mac.mm
diff --git a/device/bluetooth/bluetooth_low_energy_device_mac.mm b/device/bluetooth/bluetooth_low_energy_device_mac.mm
index 4693e3ffac17e8949d9f27a736801dbc300c2a0c..8683ba76ae77b372d4f8617bc097811153481834 100644
--- a/device/bluetooth/bluetooth_low_energy_device_mac.mm
+++ b/device/bluetooth/bluetooth_low_energy_device_mac.mm
@@ -201,9 +201,7 @@ void BluetoothLowEnergyDeviceMac::DidDiscoverPrimaryServices(NSError* error) {
// TODO(http://crbug.com/609320): Need to pass the error.
// TODO(http://crbug.com/609844): Decide what to do if discover failed
// a device services.
- VLOG(1) << *this << ": Can't discover primary services: "
- << error.localizedDescription.UTF8String << " (" << error.domain
- << ": " << error.code << ").";
+ VLOG(1) << *this << ": Can't discover primary services: " << error;
return;
}
@@ -247,9 +245,7 @@ void BluetoothLowEnergyDeviceMac::DidDiscoverCharacteristics(
if (error) {
// TODO(http://crbug.com/609320): Need to pass the error.
// TODO(http://crbug.com/609844): Decide what to do if discover failed
- VLOG(1) << *this << ": Can't discover characteristics: "
- << error.localizedDescription.UTF8String << " (" << error.domain
- << ": " << error.code << ").";
+ VLOG(1) << *this << ": Can't discover characteristics: " << error;
return;
}
@@ -320,9 +316,7 @@ void BluetoothLowEnergyDeviceMac::DidDiscoverDescriptors(
if (error) {
// TODO(http://crbug.com/609320): Need to pass the error.
// TODO(http://crbug.com/609844): Decide what to do if discover failed
- VLOG(1) << *this << ": Can't discover descriptors: "
- << error.localizedDescription.UTF8String << " (" << error.domain
- << ": " << error.code << ").";
+ VLOG(1) << *this << ": Can't discover descriptors: " << error;
return;
}
if (!IsGattConnected()) {
@@ -408,8 +402,7 @@ BluetoothLowEnergyDeviceMac::GetBluetoothRemoteGattService(
void BluetoothLowEnergyDeviceMac::DidDisconnectPeripheral(NSError* error) {
VLOG(1) << *this << ": Disconnected from peripheral.";
if (error) {
- VLOG(1) << *this << ": Bluetooth error, domain: " << error.domain.UTF8String
- << ", error code: " << error.code;
+ VLOG(1) << *this << ": Bluetooth error: " << error;
}
SetGattServicesDiscoveryComplete(false);
// Removing all services at once to ensure that calling GetGattService on
« no previous file with comments | « device/bluetooth/bluetooth_adapter_mac.mm ('k') | device/bluetooth/bluetooth_remote_gatt_characteristic_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698