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

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

Issue 2259553002: Make AppBannerInfoBar install WebAPK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move logic to WebApkInstaller. 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 9c8e3ebb33215cf961fe325a2b5e9dfa5c60c8d4..0ace22c5f66c5ea60afddb531bc92ca31f43dc52 100644
--- a/chrome/browser/ui/android/infobars/app_banner_infobar_android.h
+++ b/chrome/browser/ui/android/infobars/app_banner_infobar_android.h
@@ -25,7 +25,8 @@ class AppBannerInfoBarAndroid : public ConfirmInfoBar {
// Constructs an AppBannerInfoBarAndroid promoting a web app.
AppBannerInfoBarAndroid(
std::unique_ptr<banners::AppBannerInfoBarDelegateAndroid> delegate,
- const GURL& app_url);
+ const GURL& app_url,
+ bool is_webapk);
~AppBannerInfoBarAndroid() override;
@@ -45,6 +46,9 @@ class AppBannerInfoBarAndroid : public ConfirmInfoBar {
// Web app: URL for the app.
GURL app_url_;
+ // Indicates whether the info bar is for installing a WebAPK.
+ bool is_webapk_;
+
base::android::ScopedJavaGlobalRef<jobject> java_infobar_;
DISALLOW_COPY_AND_ASSIGN(AppBannerInfoBarAndroid);

Powered by Google App Engine
This is Rietveld 408576698