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

Unified Diff: chrome/browser/banners/app_banner_manager.cc

Issue 2677853002: [Webapps]: Clear AppBannerManager::page_requested_prompt_ at start of banner flow (Closed)
Patch Set: Merge branch 'master' into install_banner2 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
« no previous file with comments | « no previous file | chrome/browser/banners/app_banner_manager_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/banners/app_banner_manager.cc
diff --git a/chrome/browser/banners/app_banner_manager.cc b/chrome/browser/banners/app_banner_manager.cc
index 98e0964741bbce168defece1ac6ead560c5f579d..00baa317343fce1d6242067a1fb4e739013c0495 100644
--- a/chrome/browser/banners/app_banner_manager.cc
+++ b/chrome/browser/banners/app_banner_manager.cc
@@ -92,6 +92,8 @@ void AppBannerManager::RequestAppBanner(const GURL& validated_url,
is_active_ = true;
is_debug_mode_ = is_debug_mode;
+ was_canceled_by_page_ = false;
+ page_requested_prompt_ = false;
// We only need to call ReportStatus if we aren't in debug mode (this avoids
// skew from testing).
@@ -332,8 +334,6 @@ void AppBannerManager::Stop() {
event_.reset();
is_active_ = false;
- was_canceled_by_page_ = false;
- page_requested_prompt_ = false;
need_to_log_status_ = false;
}
« no previous file with comments | « no previous file | chrome/browser/banners/app_banner_manager_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698