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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/TabBase.java

Issue 11567061: Throw exception when initialization failed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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/android/java/src/org/chromium/chrome/browser/TabBase.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java b/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
index f65d228b19537479dfcfb5d6f2ba0132a6aad275..3fde5bb0f912c2eaf86d00a15dbfc39d276f6b05 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
@@ -7,6 +7,7 @@ package org.chromium.chrome.browser;
import android.content.Context;
import android.text.TextUtils;
+import org.chromium.content.browser.AndroidBrowserProcessInitException;
import org.chromium.content.browser.ContentView;
import org.chromium.content.browser.LoadUrlParams;
import org.chromium.content.common.CleanupReference;
@@ -35,7 +36,8 @@ public class TabBase {
* @param url The URL to start this tab with.
* @param window The NativeWindow should represent this tab.
*/
- public TabBase(Context context, String url, NativeWindow window) {
+ public TabBase(Context context, String url, NativeWindow window)
+ throws AndroidBrowserProcessInitException {
this(context, 0, window);
loadUrlWithSanitization(url);
}
@@ -45,7 +47,8 @@ public class TabBase {
* @param nativeWebContentsPtr A native pointer to the WebContents this tab represents.
* @param window The NativeWindow should represent this tab.
*/
- public TabBase(Context context, int nativeWebContentsPtr, NativeWindow window) {
+ public TabBase(Context context, int nativeWebContentsPtr, NativeWindow window)
+ throws AndroidBrowserProcessInitException {
mWindow = window;
// Build the WebContents and the ContentView/ContentViewCore
@@ -182,4 +185,4 @@ public class TabBase {
private native void nativeInitWebContentsDelegate(int nativeTabBaseAndroidImpl,
ChromeWebContentsDelegateAndroid chromeWebContentsDelegateAndroid);
private native String nativeFixupUrl(int nativeTabBaseAndroidImpl, String url);
-}
+}

Powered by Google App Engine
This is Rietveld 408576698