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

Unified Diff: services/shell/standalone/desktop/launcher_process.cc

Issue 2091443002: Remove calls to deprecated MessageLoop methods in services. (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 | « services/shell/standalone/context.cc ('k') | services/shell/standalone/tracer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/shell/standalone/desktop/launcher_process.cc
diff --git a/services/shell/standalone/desktop/launcher_process.cc b/services/shell/standalone/desktop/launcher_process.cc
index 4403b227e7fa99f43a0b9d7b7a68542af8761b58..b2fcdd5a0bb48446090cbc4d7538cc51cc4ab48a 100644
--- a/services/shell/standalone/desktop/launcher_process.cc
+++ b/services/shell/standalone/desktop/launcher_process.cc
@@ -15,6 +15,8 @@
#include "base/i18n/icu_util.h"
#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
+#include "base/run_loop.h"
+#include "base/single_thread_task_runner.h"
#include "base/synchronization/waitable_event.h"
#include "base/threading/platform_thread.h"
#include "services/shell/standalone/context.h"
@@ -40,12 +42,11 @@ int LauncherProcessMain() {
CHECK(base::i18n::InitializeICU());
shell_context.Init(nullptr);
- message_loop.PostTask(
- FROM_HERE,
- base::Bind(&Context::RunCommandLineApplication,
- base::Unretained(&shell_context)));
+ message_loop.task_runner()->PostTask(
+ FROM_HERE, base::Bind(&Context::RunCommandLineApplication,
+ base::Unretained(&shell_context)));
- message_loop.Run();
+ base::RunLoop().Run();
// Must be called before |message_loop| is destroyed.
shell_context.Shutdown();
« no previous file with comments | « services/shell/standalone/context.cc ('k') | services/shell/standalone/tracer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698