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

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

Issue 2050933002: Upstream: Add additional checks before creating a WebAPK after clicking "Add to Homescreen" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 026f4b8d784642d89811d4d41ead4c367fee760d..bf7c30b72916556a29764b5038a33faa2c1e93b3 100644
--- a/chrome/browser/android/banners/app_banner_infobar_delegate_android.h
+++ b/chrome/browser/android/banners/app_banner_infobar_delegate_android.h
@@ -9,6 +9,7 @@
#include "base/macros.h"
#include "base/strings/string16.h"
#include "chrome/browser/android/banners/app_banner_data_fetcher_android.h"
+#include "chrome/browser/android/shortcut_info.h"
#include "components/infobars/core/confirm_infobar_delegate.h"
#include "content/public/common/manifest.h"
#include "ui/gfx/image/image.h"
@@ -35,7 +36,8 @@ class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate {
scoped_refptr<AppBannerDataFetcherAndroid> data_fetcher,
const base::string16& app_title,
SkBitmap* app_icon,
- const content::Manifest& web_app_data);
+ const content::Manifest& web_app_data,
+ ShortcutInfo::Type webapp_type);
// Delegate for promoting an Android app.
AppBannerInfoBarDelegateAndroid(
@@ -87,6 +89,7 @@ class AppBannerInfoBarDelegateAndroid : public ConfirmInfoBarDelegate {
int event_request_id_;
content::Manifest web_app_data_;
+ ShortcutInfo::Type webapp_type_;
base::android::ScopedJavaGlobalRef<jobject> native_app_data_;
std::string native_app_package_;

Powered by Google App Engine
This is Rietveld 408576698