diff options
author | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-26 05:55:10 +0000 |
---|---|---|
committer | darin@google.com <darin@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-26 05:55:10 +0000 |
commit | ab820df141e6ab45fd8a095d2f57f91df44e6c9c (patch) | |
tree | 20ae83601c4a484cd74c908b62bc9d702ef27996 /chrome/browser/browser_main.cc | |
parent | 4d9bdfafcd1393385860bc9fe947e0c07719c0f4 (diff) | |
download | chromium_src-ab820df141e6ab45fd8a095d2f57f91df44e6c9c.zip chromium_src-ab820df141e6ab45fd8a095d2f57f91df44e6c9c.tar.gz chromium_src-ab820df141e6ab45fd8a095d2f57f91df44e6c9c.tar.bz2 |
Chrome changes corresponding to my message_loop_type CL.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1363 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_main.cc')
-rw-r--r-- | chrome/browser/browser_main.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc index b3357f0..8555784 100644 --- a/chrome/browser/browser_main.cc +++ b/chrome/browser/browser_main.cc @@ -245,9 +245,11 @@ int BrowserMain(CommandLine &parsed_command_line, int show_command, // TODO(beng, brettw): someday, break this out into sub functions with well // defined roles (e.g. pre/post-profile startup, etc). + MessageLoop main_message_loop(MessageLoop::TYPE_UI); + const char* main_thread_name = "Chrome_BrowserMain"; PlatformThread::SetName(main_thread_name); - MessageLoop::current()->set_thread_name(main_thread_name); + main_message_loop.set_thread_name(main_thread_name); bool already_running = CreateUniqueChromeEvent(); // Make the selection of network stacks early on before any consumers try to @@ -480,7 +482,7 @@ int BrowserMain(CommandLine &parsed_command_line, int show_command, if (BrowserInit::ProcessCommandLine(parsed_command_line, L"", local_state, show_command, true, profile, &result_code)) { - MessageLoop::current()->Run(browser_process->accelerator_handler()); + MessageLoopForUI::current()->Run(browser_process->accelerator_handler()); } if (metrics) |