Chromium Code Reviews| Index: device/bluetooth/bluetooth_adapter_profile_chromeos.cc |
| diff --git a/device/bluetooth/bluetooth_adapter_profile_chromeos.cc b/device/bluetooth/bluetooth_adapter_profile_chromeos.cc |
| index f8003043d63270a0e4671977f793e243b2e93fa3..207c55c4bad2bd952aba95776ead895cfde3303a 100644 |
| --- a/device/bluetooth/bluetooth_adapter_profile_chromeos.cc |
| +++ b/device/bluetooth/bluetooth_adapter_profile_chromeos.cc |
| @@ -28,8 +28,9 @@ void BluetoothAdapterProfileChromeOS::Register( |
| new BluetoothAdapterProfileChromeOS(uuid)); |
| VLOG(1) << "Registering profile: " << profile->object_path().value(); |
| + const dbus::ObjectPath& object_path = profile->object_path(); |
| DBusThreadManager::Get()->GetBluetoothProfileManagerClient()->RegisterProfile( |
| - profile->object_path(), |
|
armansito
2015/03/11 06:48:38
I really don't see how this is a NULL pointer dere
Ilya Sherman
2015/03/11 09:23:54
I agree that it's surprising that unit tests didn'
armansito
2015/03/11 16:44:29
OK, I guess that makes sense. I would elaborate a
armansito
2015/03/11 17:09:24
Also, it's not technically a NULL-pointer derefere
|
| + object_path, |
| uuid.canonical_value(), |
| options, |
| base::Bind(success_callback, base::Passed(&profile)), |