Index: content/browser/geolocation/geolocation_provider_impl_unittest.cc |
diff --git a/content/browser/geolocation/geolocation_provider_impl_unittest.cc b/content/browser/geolocation/geolocation_provider_impl_unittest.cc |
index 3ba4dae1baa22819d6a26dd59f59e804cef77ac6..491856bfa9982c8c4eea61150ee2042b1bc2a725 100644 |
--- a/content/browser/geolocation/geolocation_provider_impl_unittest.cc |
+++ b/content/browser/geolocation/geolocation_provider_impl_unittest.cc |
@@ -64,7 +64,7 @@ class AsyncMockGeolocationObserver : public MockGeolocationObserver { |
public: |
void OnLocationUpdate(const Geoposition& position) override { |
MockGeolocationObserver::OnLocationUpdate(position); |
- base::MessageLoop::current()->Quit(); |
+ base::MessageLoop::current()->QuitWhenIdle(); |
} |
}; |
@@ -144,7 +144,7 @@ bool GeolocationProviderTest::ProvidersStarted() { |
provider_->task_runner()->PostTaskAndReply( |
FROM_HERE, base::Bind(&GeolocationProviderTest::GetProvidersStarted, |
base::Unretained(this), &started), |
- base::MessageLoop::QuitClosure()); |
+ base::MessageLoop::QuitWhenIdleClosure()); |
message_loop_.Run(); |
return started; |
} |