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

Unified Diff: chrome/app/android/chrome_main_delegate_android.cc

Issue 11567061: Throw exception when initialization failed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 7 years, 11 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: chrome/app/android/chrome_main_delegate_android.cc
diff --git a/chrome/app/android/chrome_main_delegate_android.cc b/chrome/app/android/chrome_main_delegate_android.cc
index bf28f4ab91b5339e8a59d3f89b576e6514e58eef..2d82ba9f85b22e91244f6355ee5dbed20fc1872b 100644
--- a/chrome/app/android/chrome_main_delegate_android.cc
+++ b/chrome/app/android/chrome_main_delegate_android.cc
@@ -40,12 +40,7 @@ int ChromeMainDelegateAndroid::RunProcess(
RegisterApplicationNativeMethods(env);
browser_runner_.reset(content::BrowserMainRunner::Create());
- int exit_code = browser_runner_->Initialize(main_function_params);
- DCHECK(exit_code < 0);
-
- // Return 0 so that we do NOT trigger the default behavior. On Android, the
- // UI message loop is managed by the Java application.
- return 0;
+ return browser_runner_->Initialize(main_function_params);
}
return ChromeMainDelegate::RunProcess(process_type, main_function_params);

Powered by Google App Engine
This is Rietveld 408576698