The app banner system records a DID_ADD_TO_HOMESCREEN event every time:
a) a user adds a site to homescreen via an app banner
b) a user adds a site to homescreen via the add to homescreen overflow menu item
c) the user launches a site from homescreen
We can expose a method on AppBannerSettingsHelper to let other parts of chromium query whether a site has been recently launched from homescreen.
We should also think about unifying this with the Java-side 10 day recent launch heuristic for PWAs. Perhaps letting the app banner content setting be the source of truth for this would be better?
Comment 1 by bugdroid1@chromium.org
, Jul 29 2016