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

Unified Diff: chrome/service/service_main.cc

Issue 2083363002: Remove calls to deprecated MessageLoop methods in chrome. (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: chrome/service/service_main.cc
diff --git a/chrome/service/service_main.cc b/chrome/service/service_main.cc
index 4e3318cfd59cec9be4fae7ee3b952ab42fb5fe25..81ffb8874836ebf83524ef428448f87fd16771c6 100644
--- a/chrome/service/service_main.cc
+++ b/chrome/service/service_main.cc
@@ -6,6 +6,7 @@
#include "base/debug/debugger.h"
#include "base/message_loop/message_loop.h"
#include "base/metrics/statistics_recorder.h"
+#include "base/run_loop.h"
#include "chrome/common/service_process_util.h"
#include "chrome/service/service_process.h"
#include "content/public/common/main_function_params.h"
@@ -37,7 +38,7 @@ int ServiceProcessMain(const content::MainFunctionParams& parameters) {
if (service_process.Initialize(&main_message_loop,
parameters.command_line,
state.release())) {
- base::MessageLoop::current()->Run();
+ base::RunLoop().Run();
} else {
LOG(ERROR) << "Service process failed to initialize";
}
« no previous file with comments | « chrome/service/cloud_print/printer_job_handler_unittest.cc ('k') | chrome/service/service_process_prefs_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698