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

Unified Diff: chrome/browser/android/banners/app_banner_manager_android.cc

Issue 2671653002: Webapps: Clear AppBannerManagerAndroid::native_app_data_ prior to native app check (Closed)
Patch Set: Merge branch 'master' into install_banner 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_manager_android.cc
diff --git a/chrome/browser/android/banners/app_banner_manager_android.cc b/chrome/browser/android/banners/app_banner_manager_android.cc
index e5f96225074296d8df1ec0f325b08f56ee755f47..9a267231d20d232448cfd80a440891805ddbe754 100644
--- a/chrome/browser/android/banners/app_banner_manager_android.cc
+++ b/chrome/browser/android/banners/app_banner_manager_android.cc
@@ -197,6 +197,12 @@ void AppBannerManagerAndroid::OnAppIconFetched(const SkBitmap& bitmap) {
SendBannerPromptRequest();
}
+void AppBannerManagerAndroid::ResetCurrentPageData() {
+ AppBannerManager::ResetCurrentPageData();
+ native_app_data_.Reset();
+ native_app_package_ = "";
+}
+
void AppBannerManagerAndroid::ShowBanner() {
content::WebContents* contents = web_contents();
DCHECK(contents);
« no previous file with comments | « chrome/browser/android/banners/app_banner_manager_android.h ('k') | chrome/browser/banners/app_banner_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698