Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2408)

Unified Diff: chrome/browser/android/net/external_estimate_provider_android.cc

Issue 2110603002: Remove calls to MessageLoop::current() in chrome. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/users/chrome_user_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698