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

Unified Diff: chrome/nacl/nacl_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/browser/browser_main.cc ('k') | chrome/profile_import/profile_import_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/nacl/nacl_main.cc
diff --git a/chrome/nacl/nacl_main.cc b/chrome/nacl/nacl_main.cc
index 1eb0455376ad2ba6310f83525f4e126be08c9946..90f62db5c8fecf99b9256c80d77ab6bc6f16b2fa 100644
--- a/chrome/nacl/nacl_main.cc
+++ b/chrome/nacl/nacl_main.cc
@@ -36,8 +36,7 @@
// This is necessary for supporting NaCl in Chrome on Win64.
int NaClBrokerMain(const MainFunctionParams& parameters) {
// The main thread of the broker.
- MessageLoopForIO main_message_loop;
- base::PlatformThread::SetName("CrNaClBrokerMain");
+ MessageLoopForIO main_message_loop("CrNaClBrokerMain");
base::SystemMonitor system_monitor;
HighResolutionTimerManager hi_res_timer_manager;
@@ -100,8 +99,7 @@ int NaClMain(const MainFunctionParams& parameters) {
HandleNaClTestParameters(parsed_command_line);
// The main thread of the plugin services IO.
- MessageLoopForIO main_message_loop;
- base::PlatformThread::SetName("CrNaClMain");
+ MessageLoopForIO main_message_loop("CrNaClMain");
base::SystemMonitor system_monitor;
HighResolutionTimerManager hi_res_timer_manager;
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/profile_import/profile_import_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698