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

Unified Diff: chrome/service/service_main.cc

Issue 7529003: Make base::MessageLoops have names at construction time (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Make message loop name optional. Created 9 years, 5 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 | « chrome/profile_import/profile_import_main.cc ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/service_main.cc
diff --git a/chrome/service/service_main.cc b/chrome/service/service_main.cc
index 9242c173f9aec0c93f59087ed37f5cf0390a7db6..6ecf6b5eb7d2a51b9e9526f943ea12c7f40d71d1 100644
--- a/chrome/service/service_main.cc
+++ b/chrome/service/service_main.cc
@@ -17,8 +17,7 @@
// Mainline routine for running as the service process.
int ServiceProcessMain(const MainFunctionParams& parameters) {
- MessageLoopForUI main_message_loop;
- main_message_loop.set_thread_name("MainThread");
+ MessageLoopForUI main_message_loop("CrServiceMain");
if (parameters.command_line_.HasSwitch(switches::kWaitForDebugger)) {
base::debug::WaitForDebugger(60, true);
}
@@ -30,8 +29,6 @@ int ServiceProcessMain(const MainFunctionParams& parameters) {
chrome_application_mac::RegisterCrApp();
#endif
- base::PlatformThread::SetName("CrServiceMain");
-
// If there is already a service process running, quit now.
scoped_ptr<ServiceProcessState> state(new ServiceProcessState);
if (!state->Initialize())
« no previous file with comments | « chrome/profile_import/profile_import_main.cc ('k') | content/gpu/gpu_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698