Index: device/bluetooth/bluetooth_socket_chromeos.cc |
diff --git a/device/bluetooth/bluetooth_socket_chromeos.cc b/device/bluetooth/bluetooth_socket_chromeos.cc |
index 5eedf5b1c5a27b0028f0502067888ebb9f8a36da..e401a3d6536acde93933ace5f7a8fcc2a5fa2da0 100644 |
--- a/device/bluetooth/bluetooth_socket_chromeos.cc |
+++ b/device/bluetooth/bluetooth_socket_chromeos.cc |
@@ -245,7 +245,7 @@ void BluetoothSocketChromeOS::RegisterProfile( |
// Before reaching out to the Bluetooth Daemon to register a listening socket, |
// make sure it's actually running. If not, report success and carry on; |
// the profile will be registered when the daemon becomes available. |
- if (adapter_ && !adapter_->IsPresent()) { |
+ if (adapter_.get() && !adapter_->IsPresent()) { |
VLOG(1) << object_path_.value() << ": Delaying profile registration."; |
success_callback.Run(); |
return; |