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

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

Issue 2259553002: Make AppBannerInfoBar install WebAPK. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
« no previous file with comments | « chrome/browser/ui/android/infobars/app_banner_infobar_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/android/infobars/app_banner_infobar_android.cc
diff --git a/chrome/browser/ui/android/infobars/app_banner_infobar_android.cc b/chrome/browser/ui/android/infobars/app_banner_infobar_android.cc
index 2d558e9254f06c9d31cbbabc639de405577233bc..cf9e8539ea5006ccc89a3c6b0cd11d5d4e1b007a 100644
--- a/chrome/browser/ui/android/infobars/app_banner_infobar_android.cc
+++ b/chrome/browser/ui/android/infobars/app_banner_infobar_android.cc
@@ -22,8 +22,11 @@ AppBannerInfoBarAndroid::AppBannerInfoBarAndroid(
AppBannerInfoBarAndroid::AppBannerInfoBarAndroid(
std::unique_ptr<banners::AppBannerInfoBarDelegateAndroid> delegate,
- const GURL& app_url)
- : ConfirmInfoBar(std::move(delegate)), app_url_(app_url) {}
+ const GURL& app_url,
+ bool is_webapk)
+ : ConfirmInfoBar(std::move(delegate)),
+ app_url_(app_url),
+ is_webapk_(is_webapk) {}
AppBannerInfoBarAndroid::~AppBannerInfoBarAndroid() {
}
@@ -57,7 +60,7 @@ AppBannerInfoBarAndroid::CreateRenderInfoBar(JNIEnv* env) {
base::android::ConvertUTF8ToJavaString(env, trimmed_url);
infobar.Reset(Java_AppBannerInfoBarAndroid_createWebAppInfoBar(
- env, app_title, java_bitmap, app_url));
+ env, app_title, java_bitmap, app_url, is_webapk_));
}
java_infobar_.Reset(env, infobar.obj());
« no previous file with comments | « chrome/browser/ui/android/infobars/app_banner_infobar_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698