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

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

Issue 2910363002: Propagate a user gesture bit for beforeinstallprompt.prompt() (Closed)
Patch Set: Created 3 years, 7 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/banners/app_banner_manager.h ('k') | content/shell/test_runner/app_banner_service.h » ('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 79a453dc26ca3f6b4259ff9fa23ca8fafa67255a..d13f2f9dde1d43586702bbf6c42bab18b6e59bac 100644
--- a/chrome/browser/banners/app_banner_manager.cc
+++ b/chrome/browser/banners/app_banner_manager.cc
@@ -555,7 +555,7 @@ void AppBannerManager::OnBannerPromptReply(
UpdateState(State::COMPLETE);
}
-void AppBannerManager::DisplayAppBanner() {
+void AppBannerManager::DisplayAppBanner(bool user_gesture) {
if (is_pending_event()) {
// Simulate a non-canceled OnBannerPromptReply to show the delayed banner.
OnBannerPromptReply(blink::mojom::AppBannerPromptReply::NONE, referrer_);
« no previous file with comments | « chrome/browser/banners/app_banner_manager.h ('k') | content/shell/test_runner/app_banner_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698