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

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

Issue 2096073002: Record how often we end up in Chrome from external navigations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add null check for activity info. 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 6a4cc99c31cf2ff84d7337ffbc228babd3b2ea5d..3ac23a27f3e56a139be09d95ff6a011438a5c8ad 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
@@ -32,7 +32,7 @@ interface ExternalNavigationDelegate {
* Search for intent handlers that are specific to this URL aka, specialized apps like
* google maps or youtube
*/
- boolean isSpecializedHandlerAvailable(List<ResolveInfo> intent);
+ boolean isSpecializedHandlerAvailable(List<ResolveInfo> infos);
/**
* Returns the number of specialized intent handlers in {@params infos}. Specialized intent
@@ -106,6 +106,9 @@ interface ExternalNavigationDelegate {
/** Adds a window id to the intent, if necessary. */
void maybeSetWindowId(Intent intent);
+ /** Adds the package name of a specialized intent handler. */
+ void maybeRecordAppHandlersInIntent(Intent intent, List<ResolveInfo> info);
+
/**
* Determine if the Chrome app is in the foreground.
*/

Powered by Google App Engine
This is Rietveld 408576698