Index: device/bluetooth/bluez/bluetooth_gatt_bluez_unittest.cc |
diff --git a/device/bluetooth/bluez/bluetooth_gatt_bluez_unittest.cc b/device/bluetooth/bluez/bluetooth_gatt_bluez_unittest.cc |
index 30eed1b86ea1bb0c4c31995da4fd0c087d408e23..fb0a052b07a2c56d3e44cfd1b605d891a770272c 100644 |
--- a/device/bluetooth/bluez/bluetooth_gatt_bluez_unittest.cc |
+++ b/device/bluetooth/bluez/bluetooth_gatt_bluez_unittest.cc |
@@ -238,10 +238,8 @@ class BluetoothGattBlueZTest : 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(); |
- } |
} |
void SuccessCallback() { ++success_callback_count_; } |
@@ -281,8 +279,7 @@ class BluetoothGattBlueZTest : public testing::Test { |
protected: |
void QuitMessageLoop() { |
- if (base::MessageLoop::current() && |
- base::MessageLoop::current()->is_running()) |
+ if (base::RunLoop::IsRunningOnCurrentThread()) |
base::MessageLoop::current()->QuitWhenIdle(); |
} |