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

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

Issue 871103004: Allow installing apps via the AppBannerInfoBar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@pointers
Patch Set: Fix compile Created 5 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/ui/android/infobars/app_banner_infobar.cc
diff --git a/chrome/browser/ui/android/infobars/app_banner_infobar.cc b/chrome/browser/ui/android/infobars/app_banner_infobar.cc
index f503e77ef2d115cb41d90976b4a3ead7ebfe1f1f..e20748973215e03c65dc4e06b0a134382e241429 100644
--- a/chrome/browser/ui/android/infobars/app_banner_infobar.cc
+++ b/chrome/browser/ui/android/infobars/app_banner_infobar.cc
@@ -75,6 +75,13 @@ AppBannerInfoBar::CreateRenderInfoBar(JNIEnv* env) {
return infobar;
}
+void AppBannerInfoBar::OnInstallStateChanged(int new_state) {
+ JNIEnv* env = base::android::AttachCurrentThread();
+ Java_AppBannerInfoBar_onInstallStateChanged(env,
+ java_infobar_.obj(),
+ new_state);
+}
+
// Native JNI methods ---------------------------------------------------------
bool RegisterAppBannerInfoBarDelegate(JNIEnv* env) {
« no previous file with comments | « chrome/browser/ui/android/infobars/app_banner_infobar.h ('k') | chrome/browser/ui/android/infobars/confirm_infobar.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698