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

Issue 2185453003: Expose a WasLaunchedRecently method using the app banner content setting. (Closed)

Created:
4 years, 5 months ago by dominickn
Modified:
4 years, 4 months ago
Reviewers:
benwells
CC:
chromium-reviews, dominickn+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Expose 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+132 lines, -10 lines) Patch
M chrome/browser/banners/app_banner_settings_helper.h View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper.cc View 1 4 chunks +49 lines, -4 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper_unittest.cc View 1 5 chunks +75 lines, -6 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
dominickn
PTAL, thanks! This is for the ImportantSites folks, and we should also think about marrying ...
4 years, 5 months ago (2016-07-26 04:22:50 UTC) #6
benwells
lgtm https://codereview.chromium.org/2185453003/diff/1/chrome/browser/banners/app_banner_settings_helper.cc File chrome/browser/banners/app_banner_settings_helper.cc (right): https://codereview.chromium.org/2185453003/diff/1/chrome/browser/banners/app_banner_settings_helper.cc#newcode577 chrome/browser/banners/app_banner_settings_helper.cc:577: if (delta >= base::TimeDelta() && Optional nit: maybe ...
4 years, 4 months ago (2016-07-28 07:47:01 UTC) #7
dominickn
https://codereview.chromium.org/2185453003/diff/1/chrome/browser/banners/app_banner_settings_helper.cc File chrome/browser/banners/app_banner_settings_helper.cc (right): https://codereview.chromium.org/2185453003/diff/1/chrome/browser/banners/app_banner_settings_helper.cc#newcode577 chrome/browser/banners/app_banner_settings_helper.cc:577: if (delta >= base::TimeDelta() && On 2016/07/28 07:47:01, benwells ...
4 years, 4 months ago (2016-07-29 00:34:09 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2185453003/20001
4 years, 4 months ago (2016-07-29 00:34:38 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-07-29 00:38:18 UTC) #16
commit-bot: I haz the power
4 years, 4 months ago (2016-07-29 00:39:31 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/83864870eb6ecf3d28266e6fe191fe182fb86436
Cr-Commit-Position: refs/heads/master@{#408530}

Powered by Google App Engine
This is Rietveld 408576698