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 df8fd635bdfe171bc8435390a8b7298ef76f3b0c..2343fa7d816464d9c637db2ed8a709e229f73283 100644 |
--- a/content/browser/geolocation/geolocation_provider_impl.cc |
+++ b/content/browser/geolocation/geolocation_provider_impl.cc |
@@ -94,7 +94,7 @@ GeolocationProviderImpl::~GeolocationProviderImpl() { |
} |
bool GeolocationProviderImpl::OnGeolocationThread() const { |
- return base::MessageLoop::current() == message_loop(); |
+ return task_runner()->BelongsToCurrentThread(); |
} |
void GeolocationProviderImpl::OnClientsChanged() { |