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

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: Addressed comments 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/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..69b5ec70f47dd49987940e238572c042f4c2dd04 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/TabBase.java
@@ -10,6 +10,7 @@ import android.text.TextUtils;
import org.chromium.content.browser.ContentView;
import org.chromium.content.browser.LoadUrlParams;
import org.chromium.content.common.CleanupReference;
+import org.chromium.content.common.ProcessInitException;
import org.chromium.ui.gfx.NativeWindow;
import java.util.ArrayList;
@@ -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 ProcessInitException {
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 ProcessInitException {
mWindow = window;
// Build the WebContents and the ContentView/ContentViewCore

Powered by Google App Engine
This is Rietveld 408576698