Index: chromeos/dbus/services/service_provider_test_helper.cc |
diff --git a/chromeos/dbus/services/service_provider_test_helper.cc b/chromeos/dbus/services/service_provider_test_helper.cc |
index f463a65dfc60ef3bcc9039b29d7c51733d782ce0..6a3488d5feb0b631f9afad052fcafbc0ff824d18 100644 |
--- a/chromeos/dbus/services/service_provider_test_helper.cc |
+++ b/chromeos/dbus/services/service_provider_test_helper.cc |
@@ -158,7 +158,7 @@ void ServiceProviderTestHelper::OnResponse( |
std::unique_ptr<dbus::Response> response) { |
response_ = std::move(response); |
response_received_ = true; |
- if (base::MessageLoop::current()->is_running()) |
+ if (base::RunLoop::IsRunningOnCurrentThread()) |
base::MessageLoop::current()->QuitWhenIdle(); |
} |