diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 00:46:21 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-11-05 00:46:21 +0000 |
commit | fb3aa11f5f8e53f482410466cd8d8823acd65bb5 (patch) | |
tree | 98142d96c35a824099f6f100c6141e685573f270 /chrome | |
parent | ae5497ff6e21823ba303e34ed4506bc43af29eba (diff) | |
download | chromium_src-fb3aa11f5f8e53f482410466cd8d8823acd65bb5.zip chromium_src-fb3aa11f5f8e53f482410466cd8d8823acd65bb5.tar.gz chromium_src-fb3aa11f5f8e53f482410466cd8d8823acd65bb5.tar.bz2 |
Fix first run ui hanging. The threads need to get started earlier.
BUG=26614
Review URL: http://codereview.chromium.org/360035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31046 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/browser_main.cc | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/chrome/browser/browser_main.cc b/chrome/browser/browser_main.cc index 1509b24..6475c88 100644 --- a/chrome/browser/browser_main.cc +++ b/chrome/browser/browser_main.cc @@ -620,6 +620,13 @@ int BrowserMain(const MainFunctionParams& parameters) { } } + // Create the child threads. We need to do this since ChromeThread::PostTask + // silently deletes a posted task if the target message loop isn't created. + // Note: must be done before FirstRun code is started. + browser_process->db_thread(); + browser_process->file_thread(); + browser_process->io_thread(); + // Importing other browser settings is done in a browser-like process // that exits when this task has finished. #if defined(OS_WIN) @@ -701,12 +708,6 @@ int BrowserMain(const MainFunctionParams& parameters) { net::EnsureWinsockInit(); #endif // defined(OS_WIN) - // Create the child threads. We need to do this since ChromeThread::PostTask - // silently deletes a posted task if the target message loop isn't created. - browser_process->db_thread(); - browser_process->file_thread(); - browser_process->io_thread(); - // Initialize and maintain DNS prefetcher module. chrome_browser_net::DnsPrefetcherInit dns_prefetch(user_prefs, local_state); |