| Index: device/bluetooth/bluez/bluetooth_bluez_unittest.cc
|
| diff --git a/device/bluetooth/bluez/bluetooth_bluez_unittest.cc b/device/bluetooth/bluez/bluetooth_bluez_unittest.cc
|
| index 74d88017fc7f35c0de15086fa905cecdcedd8c8b..6632d545665ff191c6a3183eef6a23a3f1d8eba4 100644
|
| --- a/device/bluetooth/bluez/bluetooth_bluez_unittest.cc
|
| +++ b/device/bluetooth/bluez/bluetooth_bluez_unittest.cc
|
| @@ -164,10 +164,8 @@ class TestPairingDelegate : public BluetoothDevice::PairingDelegate {
|
| // Some tests use a message loop since background processing is simulated;
|
| // break out of those loops.
|
| void QuitMessageLoop() {
|
| - if (base::MessageLoop::current() &&
|
| - base::MessageLoop::current()->is_running()) {
|
| + if (base::RunLoop::IsRunningOnCurrentThread())
|
| base::MessageLoop::current()->QuitWhenIdle();
|
| - }
|
| }
|
| };
|
|
|
| @@ -362,10 +360,8 @@ class BluetoothBlueZTest : public testing::Test {
|
| // Some tests use a message loop since background processing is simulated;
|
| // break out of those loops.
|
| void QuitMessageLoop() {
|
| - if (base::MessageLoop::current() &&
|
| - base::MessageLoop::current()->is_running()) {
|
| + if (base::RunLoop::IsRunningOnCurrentThread())
|
| base::MessageLoop::current()->QuitWhenIdle();
|
| - }
|
| }
|
| };
|
| const char BluetoothBlueZTest::kGapUuid[] =
|
|
|