Chromium Code Reviews
DescriptionExpose a WasLaunchedRecently method using the app banner content setting.
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
This CL adds AppBannerSettingsHelper::WasLaunchedRecently, which returns
true if there is any site under a supplied origin which has been added
to or launched from homescreen in the last 10 days. This mirrors the
Java-side heuristic used to determine if notification deep-linking
should take effect.
A future CL will look to combine the Java and C++ side heuristics so
that the timestamp data is stored in one location that is accessible to
both.
BUG=631305
Committed: https://crrev.com/83864870eb6ecf3d28266e6fe191fe182fb86436
Cr-Commit-Position: refs/heads/master@{#408530}
Patch Set 1 #
Total comments: 4
Patch Set 2 : Nits #
Messages
Total messages: 18 (12 generated)
|
|||||||||||||||||||||||||||||||||||||