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

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

Issue 2035183002: Upstream: Launch WebAPK without showing intent picker when user taps link in WebAPK scope (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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/externalnav/ExternalNavigationDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegate.java
index cbf9cd07c152f767d6537b3187859d2e7f18d63e..4b2ffb19678ee7d78fc41afe30df78c4d4a1178f 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/externalnav/ExternalNavigationDelegate.java
@@ -35,6 +35,19 @@ interface ExternalNavigationDelegate {
boolean isSpecializedHandlerAvailable(List<ResolveInfo> intent);
/**
+ * Returns the number of specialized intent handlers in {@params infos}. Specialized intent
+ * handlers are intent handlers which handle only a few URLs (e.g. google maps or youtube).
+ */
+ int countSpecializedHandlers(List<ResolveInfo> infos);
+
+ /**
+ * Returns the package name of the first valid WebAPK in {@link infos}.
+ * @param infos ResolveInfos to search.
+ * @return The package name of the first valid WebAPK. Null if no valid WebAPK was found.
+ */
+ public String findValidWebApkPackageName(List<ResolveInfo> infos);
Maria 2016/06/08 21:02:15 don't need public here
+
+ /**
* Get the name of the package of the currently running activity so that incoming intents
* can be identified as originating from this activity.
*/

Powered by Google App Engine
This is Rietveld 408576698