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

Unified Diff: content/browser/browser_main_runner.cc

Issue 250723002: content: Terminate early if the toolkit initialization fails. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 6 years, 8 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
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/public/browser/browser_main_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browser_main_runner.cc
diff --git a/content/browser/browser_main_runner.cc b/content/browser/browser_main_runner.cc
index 1f644121a06df750f04f344d91ecb6128750cd38..16309dec8460af490e891e47ace869c483d258c5 100644
--- a/content/browser/browser_main_runner.cc
+++ b/content/browser/browser_main_runner.cc
@@ -84,7 +84,8 @@ class BrowserMainRunnerImpl : public BrowserMainRunner {
main_loop_->EarlyInitialization();
// Must happen before we try to use a message loop or display any UI.
- main_loop_->InitializeToolkit();
+ if (!main_loop_->InitializeToolkit())
+ return 1;
main_loop_->MainMessageLoopStart();
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | content/public/browser/browser_main_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698