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

Unified Diff: chrome/browser/android/banners/app_banner_infobar_delegate_android.h

Issue 2675803004: Fall back to shortcut A2HS when Phonesky is out of date or unavailable. (Closed)
Patch Set: Update add_to_homescreen_data_fetcher_unittest.cc. Created 3 years, 10 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/android/banners/app_banner_infobar_delegate_android.h
diff --git a/chrome/browser/android/banners/app_banner_infobar_delegate_android.h b/chrome/browser/android/banners/app_banner_infobar_delegate_android.h
index a83b9c8ef42d519413253f91387681e695e6e981..0e540f8e790b816f9926b6393a36e3017ecb1b38 100644
--- a/chrome/browser/android/banners/app_banner_infobar_delegate_android.h
+++ b/chrome/browser/android/banners/app_banner_infobar_delegate_android.h
@@ -42,6 +42,7 @@ class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate {
std::unique_ptr<ShortcutInfo> info,
std::unique_ptr<SkBitmap> icon,
int event_request_id,
+ bool can_use_webapk_install_flow,
webapk::InstallSource webapk_install_source);
// Creates an infobar and delegate for promoting the installation of an
@@ -97,6 +98,7 @@ class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate {
int event_request_id,
bool is_webapk,
bool is_webapk_already_installed,
+ const std::string& webapk_package_name,
webapk::InstallSource webapk_install_source);
// Delegate for promoting an Android app.
@@ -153,6 +155,9 @@ class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate {
bool is_webapk_;
bool is_webapk_already_installed_;
+ // The package name of WebAPK if WebAPK has been installed.
+ std::string webapk_package_name_;
+
// Indicates the current state of a WebAPK installation.
InstallState install_state_;

Powered by Google App Engine
This is Rietveld 408576698