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

Unified Diff: content/browser/browser_main.cc

Issue 19957002: Run the later parts of startup as UI thread tasks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 months 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
Index: content/browser/browser_main.cc
diff --git a/content/browser/browser_main.cc b/content/browser/browser_main.cc
index 640ccee5ac715ca9ebc576895bc89b0427da12df..488452f49e8e6d3a1688258e76b9da7ff1595c2d 100644
--- a/content/browser/browser_main.cc
+++ b/content/browser/browser_main.cc
@@ -19,7 +19,11 @@ int BrowserMain(const MainFunctionParams& parameters) {
scoped_ptr<BrowserMainRunner> main_runner(BrowserMainRunner::Create());
- int exit_code = main_runner->Initialize(parameters);
+ scoped_refptr<content::StartupTaskRunner> startup_task_runner =
+ make_scoped_refptr(new content::StartupTaskRunner(
+ content::StartupTaskRunner::IMMEDIATE, NULL));
+
+ int exit_code = main_runner->Initialize(parameters, startup_task_runner);
if (exit_code >= 0)
return exit_code;

Powered by Google App Engine
This is Rietveld 408576698