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

Unified Diff: chrome/browser/ui/android/infobars/app_banner_infobar_android.h

Issue 2290603005: Trigger app banner when add to homescreen is pressed and WebAPKs are enabled. (Closed)
Patch Set: Created 4 years, 4 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/browser/ui/android/infobars/app_banner_infobar_android.h
diff --git a/chrome/browser/ui/android/infobars/app_banner_infobar_android.h b/chrome/browser/ui/android/infobars/app_banner_infobar_android.h
index 0ace22c5f66c5ea60afddb531bc92ca31f43dc52..8ebbc0245b96751ee81309da67402e89902e1f70 100644
--- a/chrome/browser/ui/android/infobars/app_banner_infobar_android.h
+++ b/chrome/browser/ui/android/infobars/app_banner_infobar_android.h
@@ -35,6 +35,12 @@ class AppBannerInfoBarAndroid : public ConfirmInfoBar {
// that may have been disabled.
void OnInstallStateChanged(int new_state);
+ // Called when user clicks the "Add To Homescreen" from the app menu to
+ // install a WebAPK. The banner skips the state of showing "Add To
+ // Homescreen" on the button and jumps to the state of showing "Adding"
+ // and starts the installation.
+ void InstallWebApk(content::WebContents* web_contents);
gone 2016/08/31 18:12:46 I don't think this function belongs here because i
Xi Han 2016/08/31 20:11:48 Hmm, this call needs to be made after both AppBann
gone 2016/08/31 20:24:22 Your change to AppBannerInfoBarAndroid::InstallWeb
Xi Han 2016/08/31 20:59:24 You are right, updated. Thanks:)
+
private:
// InfoBarAndroid overrides.
base::android::ScopedJavaLocalRef<jobject> CreateRenderInfoBar(

Powered by Google App Engine
This is Rietveld 408576698