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

Unified Diff: services/shell/standalone/context.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
Index: services/shell/standalone/context.cc
diff --git a/services/shell/standalone/context.cc b/services/shell/standalone/context.cc
index 47565d6a3247a974e0a4fddcf51545e9b2ece095..fae9efbfe234c68f0bd72eddcb33fc48bf26e942 100644
--- a/services/shell/standalone/context.cc
+++ b/services/shell/standalone/context.cc
@@ -220,10 +220,10 @@ void Context::Shutdown() {
TRACE_EVENT0("mojo_shell", "Context::Shutdown");
// Post a task in case OnShutdownComplete is called synchronously.
- base::MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->task_runner()->PostTask(
FROM_HERE, base::Bind(mojo::edk::ShutdownIPCSupport));
// We'll quit when we get OnShutdownComplete().
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
}
void Context::OnShutdownComplete() {
« no previous file with comments | « services/shell/runner/child/test_native_main.cc ('k') | services/shell/standalone/desktop/launcher_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698