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

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') | no next file » | 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..45a232a878bced3704a330ae8cfee384bdc65243 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 0;
Daniel Erat 2014/04/24 22:39:27 this method is super-undocumented. is this used as
sadrul 2014/04/24 22:57:14 Yep, looks like it.
Daniel Erat 2014/04/24 23:21:08 there aren't any conventions, as far as i'm aware.
sadrul 2014/04/25 02:34:48 Done.
main_loop_->MainMessageLoopStart();
« no previous file with comments | « content/browser/browser_main_loop.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698