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

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

Issue 2359363004: Add a button to OIB to launch an instant app if it exists. (Closed)
Patch Set: Comments Created 4 years, 3 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/infobar/InstantAppsInfoBarDelegate.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/infobar/InstantAppsInfoBarDelegate.java b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InstantAppsInfoBarDelegate.java
index 07cfe562b58eae95e37b04fe5b427bdd1bda4617..bcf8a8113cb73871ddddcc7bd4efd4c20e46f262 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/infobar/InstantAppsInfoBarDelegate.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/infobar/InstantAppsInfoBarDelegate.java
@@ -12,7 +12,6 @@ import android.graphics.Bitmap;
import org.chromium.base.ContextUtils;
import org.chromium.base.Log;
import org.chromium.base.annotations.CalledByNative;
-import org.chromium.chrome.browser.ChromeApplication;
import org.chromium.chrome.browser.instantapps.InstantAppsBannerData;
import org.chromium.chrome.browser.instantapps.InstantAppsHandler;
import org.chromium.content_public.browser.WebContents;
@@ -55,8 +54,7 @@ public class InstantAppsInfoBarDelegate {
} catch (ActivityNotFoundException e) {
Log.e(TAG, "No activity found to launch intent " + data.getIntent(), e);
}
- InstantAppsHandler.getInstance((ChromeApplication) appContext)
- .recordDefaultOpen(data.getHostname());
+ InstantAppsHandler.getInstance().recordDefaultOpen(data.getHostname());
}
private static native void nativeLaunch(WebContents webContents, InstantAppsBannerData data);

Powered by Google App Engine
This is Rietveld 408576698