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

Unified Diff: chrome/browser/metrics/google_update_metrics_provider_win.cc

Issue 2033753002: Remove use of deprecated MessageLoop methods in chrome/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: manual change Created 4 years, 7 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: chrome/browser/metrics/google_update_metrics_provider_win.cc
diff --git a/chrome/browser/metrics/google_update_metrics_provider_win.cc b/chrome/browser/metrics/google_update_metrics_provider_win.cc
index 397049fc76c2a2f7898f7f2232860cc6154ba997..5cf905cd524daaa66870f9b93f3745d26c18a535 100644
--- a/chrome/browser/metrics/google_update_metrics_provider_win.cc
+++ b/chrome/browser/metrics/google_update_metrics_provider_win.cc
@@ -4,8 +4,10 @@
#include "chrome/browser/metrics/google_update_metrics_provider_win.h"
-#include "base/message_loop/message_loop.h"
+#include "base/location.h"
+#include "base/single_thread_task_runner.h"
#include "base/task_runner_util.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "components/metrics/proto/system_profile.pb.h"
#include "content/public/browser/browser_thread.h"
@@ -49,7 +51,7 @@ GoogleUpdateMetricsProviderWin::~GoogleUpdateMetricsProviderWin() {
void GoogleUpdateMetricsProviderWin::GetGoogleUpdateData(
const base::Closure& done_callback) {
if (!IsOfficialBuild()) {
- base::MessageLoop::current()->PostTask(FROM_HERE, done_callback);
+ base::ThreadTaskRunnerHandle::Get()->PostTask(FROM_HERE, done_callback);
return;
}
« no previous file with comments | « chrome/browser/local_discovery/service_discovery_device_lister.cc ('k') | chrome/browser/metrics/thread_watcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698