Chromium Code Reviews| Index: chrome/browser/chromeos/bluetooth/bluetooth_adapter.h |
| diff --git a/chrome/browser/chromeos/bluetooth/bluetooth_adapter.h b/chrome/browser/chromeos/bluetooth/bluetooth_adapter.h |
| index 5c4f82fde902cbfe3c25241d90a6eed08249c632..f1e7478b7acde0d79d6449bbd4ebda072d317e34 100644 |
| --- a/chrome/browser/chromeos/bluetooth/bluetooth_adapter.h |
| +++ b/chrome/browser/chromeos/bluetooth/bluetooth_adapter.h |
| @@ -91,6 +91,9 @@ class BluetoothAdapter : private BluetoothManagerClient::Observer, |
| // is called, in the success case the callback is simply not called. |
| typedef base::Callback<void()> ErrorCallback; |
| + // The address of this adapter. |
| + std::string address() const { return address_; } |
|
keybuk
2012/03/22 17:22:11
To avoid copying, make the return type const std::
bryeung
2012/03/22 17:25:08
Good point: silly mistake on my part. Fixed.
|
| + |
| // Indicates whether the adapter is actually present on the system, for |
| // the default adapter this indicates whether any adapter is present. |
| bool IsPresent() const; |
| @@ -274,6 +277,9 @@ class BluetoothAdapter : private BluetoothManagerClient::Observer, |
| bool track_default_; |
| dbus::ObjectPath object_path_; |
| + // Address of the adapter. |
| + std::string address_; |
| + |
| // Tracked adapter state, cached locally so we only send change notifications |
| // to observers on a genuine change. |
| bool powered_; |