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

Unified Diff: chrome/browser/browser_main.cc

Issue 2741003: Rename Chrome threads to use a "Cr" prefix. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 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
« no previous file with comments | « no previous file | chrome/gpu/gpu_main.cc » ('j') | chrome/utility/utility_main.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc
index bd37e7d9728e2aa47c3e22f3dbdc142c08974818..728e786b60dd14767de13056fa56413c487178f6 100644
--- a/chrome/browser/browser_main.cc
+++ b/chrome/browser/browser_main.cc
@@ -823,12 +823,9 @@ int BrowserMain(const MainFunctionParams& parameters) {
SystemMonitor system_monitor;
HighResolutionTimerManager hi_res_timer_manager;
- std::wstring app_name = chrome::kBrowserAppName;
- std::string thread_name_string = WideToASCII(app_name + L"_BrowserMain");
-
- const char* thread_name = thread_name_string.c_str();
- PlatformThread::SetName(thread_name);
- main_message_loop.set_thread_name(thread_name);
+ const char kThreadName[] = "CrBrowserMain";
M-A Ruel 2010/06/09 01:32:32 No, you create an array on the stack, very very sa
+ PlatformThread::SetName(kThreadName);
+ main_message_loop.set_thread_name(kThreadName);
// Register the main thread by instantiating it, but don't call any methods.
ChromeThread main_thread(ChromeThread::UI, MessageLoop::current());
« no previous file with comments | « no previous file | chrome/gpu/gpu_main.cc » ('j') | chrome/utility/utility_main.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698