Chromium Code Reviews| 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()); |