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

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

Issue 2005053002: WebAPKs: Open links which are outside of WebAPK scope in Chrome not in WebAPK (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/tab/InterceptNavigationDelegateImpl.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateImpl.java b/chrome/android/java/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateImpl.java
index 3fb4a74185d085ced85bbde53895bac9edfec3b0..9edc7e22055f0e1e12243c554bcf26daede0c432 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateImpl.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tab/InterceptNavigationDelegateImpl.java
@@ -38,10 +38,13 @@ public class InterceptNavigationDelegateImpl implements InterceptNavigationDeleg
private boolean mShouldClearRedirectHistoryForTabClobbering;
/**
- * Default constructor of {@link InterceptNavigationDelegateImpl}.
+ * Creates {@link InterceptNavigationDelegateImpl} with default arguments.
+ * @param tab The associated tab.
+ * @return The InterceptNavigationDelegateImpl.
*/
- public InterceptNavigationDelegateImpl(Tab tab) {
- this(new ExternalNavigationHandler(tab), tab);
+ public static InterceptNavigationDelegateImpl createDefault(Tab tab) {
+ return new InterceptNavigationDelegateImpl(
+ ExternalNavigationHandler.createDefault(tab), tab);
}
/**

Powered by Google App Engine
This is Rietveld 408576698