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

Unified Diff: content/worker/worker_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 | « content/utility/utility_main.cc ('k') | remoting/jingle_glue/jingle_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/worker/worker_main.cc
diff --git a/content/worker/worker_main.cc b/content/worker/worker_main.cc
index 88acc213f47224b7e0dccd0fce22b519bc84f42d..1a51d3a59c397dcac0dd76ea2cbb498691bb0ca0 100644
--- a/content/worker/worker_main.cc
+++ b/content/worker/worker_main.cc
@@ -7,7 +7,6 @@
#include "base/message_loop.h"
#include "base/string_util.h"
#include "base/system_monitor/system_monitor.h"
-#include "base/threading/platform_thread.h"
#include "content/common/child_process.h"
#include "content/common/hi_res_timer_manager.h"
#include "content/common/main_function_params.h"
@@ -21,8 +20,7 @@
// Mainline routine for running as the worker process.
int WorkerMain(const MainFunctionParams& parameters) {
// The main message loop of the worker process.
- MessageLoop main_message_loop;
- base::PlatformThread::SetName("CrWorkerMain");
+ MessageLoop main_message_loop("CrWorkerMain");
base::SystemMonitor system_monitor;
HighResolutionTimerManager hi_res_timer_manager;
« no previous file with comments | « content/utility/utility_main.cc ('k') | remoting/jingle_glue/jingle_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698