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( |