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

Unified Diff: components/variations/variations_http_header_provider.cc

Issue 2087583002: Remove calls to MessageLoop::current() in components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix test error 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
Index: components/variations/variations_http_header_provider.cc
diff --git a/components/variations/variations_http_header_provider.cc b/components/variations/variations_http_header_provider.cc
index 2739aef04f14ecad9ef1f5d198e6d6330cdbc9e2..d77a4bf8e3d024de175152d6e74580b836cb47e0 100644
--- a/components/variations/variations_http_header_provider.cc
+++ b/components/variations/variations_http_header_provider.cc
@@ -16,6 +16,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_split.h"
#include "base/strings/string_util.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "components/variations/proto/client_variations.pb.h"
namespace variations {
@@ -139,7 +140,7 @@ void VariationsHttpHeaderProvider::InitVariationIDsCacheIfNeeded() {
// Register for additional cache updates. This is done first to avoid a race
// that could cause registered FieldTrials to be missed.
- DCHECK(base::MessageLoop::current());
+ DCHECK(base::ThreadTaskRunnerHandle::IsSet());
base::FieldTrialList::AddObserver(this);
base::TimeTicks before_time = base::TimeTicks::Now();
« no previous file with comments | « components/sync_driver/glue/sync_backend_host_impl.cc ('k') | components/webdata/common/web_data_request_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698