Index: chrome/browser/browser_main.cc |
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc |
index 4135b020b50dab09215f50a7662bc69c9ab24020..1d2e5a1c91f8c809b955595288d0391967bb7adf 100644 |
--- a/chrome/browser/browser_main.cc |
+++ b/chrome/browser/browser_main.cc |
@@ -25,7 +25,6 @@ |
#include "base/string_util.h" |
#include "base/sys_string_conversions.h" |
#include "base/system_monitor/system_monitor.h" |
-#include "base/threading/platform_thread.h" |
#include "base/threading/thread_restrictions.h" |
#include "base/time.h" |
#include "base/utf_string_conversions.h" |
@@ -579,7 +578,8 @@ void BrowserMainParts::SuggestPrefixFieldTrial() { |
void BrowserMainParts::MainMessageLoopStart() { |
PreMainMessageLoopStart(); |
- main_message_loop_.reset(new MessageLoop(MessageLoop::TYPE_UI)); |
+ main_message_loop_.reset( |
+ new MessageLoop("CrBrowserMain", MessageLoop::TYPE_UI)); |
// TODO(viettrungluu): should these really go before setting the thread name? |
system_monitor_.reset(new base::SystemMonitor); |
@@ -594,10 +594,6 @@ void BrowserMainParts::MainMessageLoopStart() { |
} |
void BrowserMainParts::InitializeMainThread() { |
- const char* kThreadName = "CrBrowserMain"; |
- base::PlatformThread::SetName(kThreadName); |
- main_message_loop().set_thread_name(kThreadName); |
- |
// Register the main thread by instantiating it, but don't call any methods. |
main_thread_.reset(new BrowserThread(BrowserThread::UI, |
MessageLoop::current())); |