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

Unified Diff: chrome/browser/chromeos/first_run/first_run_controller.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/chromeos/first_run/first_run_controller.cc
diff --git a/chrome/browser/chromeos/first_run/first_run_controller.cc b/chrome/browser/chromeos/first_run/first_run_controller.cc
index bb44a54e232eeedd7715173255d29f8267d1f11c..69a29b0d3025ae0fe3c7ec9951d4d84a88b3d228 100644
--- a/chrome/browser/chromeos/first_run/first_run_controller.cc
+++ b/chrome/browser/chromeos/first_run/first_run_controller.cc
@@ -5,9 +5,11 @@
#include "chrome/browser/chromeos/first_run/first_run_controller.h"
#include "ash/shell.h"
+#include "base/location.h"
#include "base/logging.h"
-#include "base/message_loop/message_loop.h"
#include "base/metrics/histogram.h"
+#include "base/single_thread_task_runner.h"
+#include "base/threading/thread_task_runner_handle.h"
#include "chrome/browser/chromeos/first_run/first_run_view.h"
#include "chrome/browser/chromeos/first_run/metrics.h"
#include "chrome/browser/chromeos/first_run/steps/app_list_step.h"
@@ -55,7 +57,7 @@ void FirstRunController::Stop() {
return;
}
g_instance->Finalize();
- base::MessageLoop::current()->DeleteSoon(FROM_HERE, g_instance);
+ base::ThreadTaskRunnerHandle::Get()->DeleteSoon(FROM_HERE, g_instance);
g_instance = NULL;
}

Powered by Google App Engine
This is Rietveld 408576698