Index: chrome/browser/android/net/external_estimate_provider_android.cc |
diff --git a/chrome/browser/android/net/external_estimate_provider_android.cc b/chrome/browser/android/net/external_estimate_provider_android.cc |
index 7895a3c42e36e8d03b77970919fc501e247ce705..a966d0e7fbcb29503e19c6c319f923dcb6efb81f 100644 |
--- a/chrome/browser/android/net/external_estimate_provider_android.cc |
+++ b/chrome/browser/android/net/external_estimate_provider_android.cc |
@@ -8,7 +8,6 @@ |
#include "base/android/context_utils.h" |
#include "base/location.h" |
-#include "base/message_loop/message_loop.h" |
#include "base/single_thread_task_runner.h" |
#include "content/public/browser/browser_thread.h" |
#include "jni/ExternalEstimateProviderAndroid_jni.h" |
@@ -20,7 +19,7 @@ ExternalEstimateProviderAndroid::ExternalEstimateProviderAndroid() |
: task_runner_(nullptr), |
delegate_(nullptr), |
weak_factory_(this) { |
- if (base::MessageLoop::current()) |
+ if (base::ThreadTaskRunnerHandle::IsSet()) |
task_runner_ = base::ThreadTaskRunnerHandle::Get(); |
JNIEnv* env = base::android::AttachCurrentThread(); |
j_external_estimate_provider_.Reset( |