Index: content/browser/geolocation/geolocation_provider_impl.cc |
diff --git a/content/browser/geolocation/geolocation_provider_impl.cc b/content/browser/geolocation/geolocation_provider_impl.cc |
index 7375d57866531634fc5c2dbf9af427fbbcde5f44..4c322696e1a22b1425ac9db78c53f9da2fdb4132 100644 |
--- a/content/browser/geolocation/geolocation_provider_impl.cc |
+++ b/content/browser/geolocation/geolocation_provider_impl.cc |
@@ -10,7 +10,7 @@ |
#include "base/location.h" |
#include "base/logging.h" |
#include "base/memory/singleton.h" |
-#include "base/message_loop/message_loop.h" |
+#include "base/single_thread_task_runner.h" |
#include "content/browser/geolocation/location_arbitrator_impl.h" |
#include "content/public/browser/browser_thread.h" |
@@ -121,7 +121,7 @@ void GeolocationProviderImpl::OnClientsChanged() { |
use_high_accuracy); |
} |
- message_loop()->PostTask(FROM_HERE, task); |
+ task_runner()->PostTask(FROM_HERE, task); |
} |
void GeolocationProviderImpl::StopProviders() { |
@@ -139,7 +139,7 @@ void GeolocationProviderImpl::StartProviders(bool use_high_accuracy) { |
void GeolocationProviderImpl::InformProvidersPermissionGranted() { |
DCHECK(IsRunning()); |
if (!OnGeolocationThread()) { |
- message_loop()->PostTask( |
+ task_runner()->PostTask( |
FROM_HERE, |
base::Bind(&GeolocationProviderImpl::InformProvidersPermissionGranted, |
base::Unretained(this))); |