Index: device/bluetooth/bluez/bluetooth_advertisement_bluez_unittest.cc |
diff --git a/device/bluetooth/bluez/bluetooth_advertisement_bluez_unittest.cc b/device/bluetooth/bluez/bluetooth_advertisement_bluez_unittest.cc |
index 1d2200535a4a405c7080d0e5e06a6c533bbb4c19..3c7addf719a9a2030df75396cdb5a80e1cd9e66d 100644 |
--- a/device/bluetooth/bluez/bluetooth_advertisement_bluez_unittest.cc |
+++ b/device/bluetooth/bluez/bluetooth_advertisement_bluez_unittest.cc |
@@ -93,10 +93,8 @@ class BluetoothAdvertisementBlueZTest : public testing::Test { |
adapter_ = adapter; |
ASSERT_NE(adapter_.get(), nullptr); |
ASSERT_TRUE(adapter_->IsInitialized()); |
- if (base::MessageLoop::current() && |
- base::MessageLoop::current()->is_running()) { |
+ if (base::RunLoop::IsRunningOnCurrentThread()) |
base::MessageLoop::current()->QuitWhenIdle(); |
- } |
} |
std::unique_ptr<BluetoothAdvertisement::Data> CreateAdvertisementData() { |