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

Unified Diff: chrome/browser/browser_main.cc

Issue 360035: Fix first run ui hanging. The threads need to get started earlier.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_main.cc
===================================================================
--- chrome/browser/browser_main.cc (revision 30973)
+++ chrome/browser/browser_main.cc (working copy)
@@ -620,6 +620,13 @@
}
}
+ // 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 run.
+ 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 @@
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698