| Index: device/bluetooth/bluez/bluetooth_adapter_profile_bluez_unittest.cc
|
| diff --git a/device/bluetooth/bluez/bluetooth_adapter_profile_bluez_unittest.cc b/device/bluetooth/bluez/bluetooth_adapter_profile_bluez_unittest.cc
|
| index 779e9b702e72f3a23339c1193c8f863a3d5562ab..bc8d0c10df5f7d3105a34b6636e1f394c1f492cb 100644
|
| --- a/device/bluetooth/bluez/bluetooth_adapter_profile_bluez_unittest.cc
|
| +++ b/device/bluetooth/bluez/bluetooth_adapter_profile_bluez_unittest.cc
|
| @@ -78,10 +78,8 @@ class BluetoothAdapterProfileBlueZTest : public testing::Test {
|
|
|
| void AdapterCallback(scoped_refptr<BluetoothAdapter> adapter) {
|
| adapter_ = adapter;
|
| - if (base::MessageLoop::current() &&
|
| - base::MessageLoop::current()->is_running()) {
|
| + if (base::RunLoop::IsRunningOnCurrentThread())
|
| base::MessageLoop::current()->QuitWhenIdle();
|
| - }
|
| }
|
|
|
| class FakeDelegate : public bluez::BluetoothProfileServiceProvider::Delegate {
|
|
|