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

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

Issue 2379923002: Implement "appinstalled" event on Android. (Closed)
Patch Set: Rebase. Created 4 years 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/banners/app_banner_manager.h
diff --git a/chrome/browser/banners/app_banner_manager.h b/chrome/browser/banners/app_banner_manager.h
index 15bb380e82d3f31cb699af498d128748e08402fb..06fba428c46910f7012177c1afba35247b7efc8b 100644
--- a/chrome/browser/banners/app_banner_manager.h
+++ b/chrome/browser/banners/app_banner_manager.h
@@ -68,6 +68,11 @@ class AppBannerManager : public content::WebContentsObserver,
// pipeline will be reported to the devtools console.
virtual void RequestAppBanner(const GURL& validated_url, bool is_debug_mode);
+ // Informs the page that it has been installed via an app banner.
+ // This is redundant for the beforeinstallprompt event's promise being
+ // resolved, but is required by the install event spec.
+ void OnInstall();
+
// Sends a message to the renderer that the user accepted the banner. Does
// nothing if |request_id| does not match the current request.
void SendBannerAccepted(int request_id);
« no previous file with comments | « chrome/browser/android/webapps/add_to_homescreen_manager.cc ('k') | chrome/browser/banners/app_banner_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698