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

Unified Diff: chrome/browser/android/webapps/add_to_homescreen_manager.h

Issue 2290603005: Trigger app banner when add to homescreen is pressed and WebAPKs are enabled. (Closed)
Patch Set: Nits. Created 4 years, 3 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/webapps/add_to_homescreen_manager.h
diff --git a/chrome/browser/android/webapps/add_to_homescreen_manager.h b/chrome/browser/android/webapps/add_to_homescreen_manager.h
index 34c81a740a5ab3fe52730375b53f5fe5cedd0250..6d87e1a794ed1b906122f8dea4e498ddfeb845cc 100644
--- a/chrome/browser/android/webapps/add_to_homescreen_manager.h
+++ b/chrome/browser/android/webapps/add_to_homescreen_manager.h
@@ -54,6 +54,10 @@ class AddToHomescreenManager : public AddToHomescreenDataFetcher::Observer {
// data needed to add the shortcut.
void AddShortcut(const ShortcutInfo& info, const SkBitmap& icon);
+ // Called only when the AddToHomescreenDataFetcher has retrieved all of the
+ // data needed to install a WebAPK.
+ void CreateInfoBarForWebAPK(const ShortcutInfo& info, const SkBitmap& icon);
+
void RecordAddToHomescreen();
// AddToHomescreenDataFetcher::Observer:
@@ -71,6 +75,9 @@ class AddToHomescreenManager : public AddToHomescreenDataFetcher::Observer {
// in progress.
bool add_shortcut_pending_;
+ // Whether the site is WebAPK-compatible.
+ bool is_webapk_compatible_;
+
// Fetches data required to add a shortcut.
scoped_refptr<AddToHomescreenDataFetcher> data_fetcher_;

Powered by Google App Engine
This is Rietveld 408576698