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

Unified Diff: device/bluetooth/bluetooth_adapter_mac.h

Issue 2784373003: bluetooth: macOS: Adding explicit function to log NSError (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_adapter_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/bluetooth_adapter_mac.h
diff --git a/device/bluetooth/bluetooth_adapter_mac.h b/device/bluetooth/bluetooth_adapter_mac.h
index 543d1953d8cc19b7dc20e7f703b92a6fd4888590..fb832c862bd3adf69d9cc4647ff9285f4e226ca5 100644
--- a/device/bluetooth/bluetooth_adapter_mac.h
+++ b/device/bluetooth/bluetooth_adapter_mac.h
@@ -53,6 +53,9 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterMac
// Converts CBUUID into BluetoothUUID
static BluetoothUUID BluetoothUUIDWithCBUUID(CBUUID* UUID);
+ // Converts NSError to string for logging.
+ static std::string String(NSError* error);
+
// BluetoothAdapter overrides:
std::string GetAddress() const override;
std::string GetName() const override;
@@ -229,10 +232,6 @@ class DEVICE_BLUETOOTH_EXPORT BluetoothAdapterMac
DISALLOW_COPY_AND_ASSIGN(BluetoothAdapterMac);
};
-// Stream operator for logging.
-DEVICE_BLUETOOTH_EXPORT std::ostream& operator<<(std::ostream& out,
- NSError* error);
-
} // namespace device
#endif // DEVICE_BLUETOOTH_BLUETOOTH_ADAPTER_MAC_H_
« no previous file with comments | « no previous file | device/bluetooth/bluetooth_adapter_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698