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

Issue 2082953002: Prevent site engagement scores from decaying when Chrome isn't in use. (Closed)

Created:
4 years, 6 months ago by dominickn
Modified:
4 years, 5 months ago
Reviewers:
calamity, anthonyvd
CC:
chrome-apps-syd-reviews_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Prevent site engagement scores from decaying when Chrome isn't in use. The site engagement service decays origins which have not been accessed in a week. However, if a user isn't using Chrome at all, the decay still occurs. This CL addresses this issue by persisting the last recorded time that any engagement occurred. If too long a period passes (currently 10 days) without *any* engagement, all scores have their last accessed time adjusted to be relative to some number of decay periods prior to now (currently set at 1 decay period), based on their offset to the last known engagement time. BUG=575504 Committed: https://crrev.com/709246a0f3afee77f19d056a6306d2f63b613fad Cr-Commit-Position: refs/heads/master@{#402653}

Patch Set 1 #

Total comments: 7

Patch Set 2 : Address reviewer comments #

Patch Set 3 : 36 hours != 3 days #

Total comments: 2

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+436 lines, -70 lines) Patch
M chrome/browser/engagement/site_engagement_score.h View 1 4 chunks +23 lines, -4 lines 0 comments Download
M chrome/browser/engagement/site_engagement_score.cc View 1 2 4 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/engagement/site_engagement_service.h View 1 3 chunks +31 lines, -5 lines 0 comments Download
M chrome/browser/engagement/site_engagement_service.cc View 1 7 chunks +98 lines, -13 lines 0 comments Download
M chrome/browser/engagement/site_engagement_service_unittest.cc View 1 8 chunks +261 lines, -48 lines 0 comments Download
M chrome/browser/profiles/profile.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (10 generated)
dominickn
PTAL, thanks!
4 years, 6 months ago (2016-06-22 00:53:01 UTC) #3
calamity
https://codereview.chromium.org/2082953002/diff/1/chrome/browser/engagement/site_engagement_score.h File chrome/browser/engagement/site_engagement_score.h (right): https://codereview.chromium.org/2082953002/diff/1/chrome/browser/engagement/site_engagement_score.h#newcode71 chrome/browser/engagement/site_engagement_score.h:71: OBSOLETE_LAST_ENGAGEMENT_PERIOD_IN_HOURS, This name is weird. It makes it look ...
4 years, 6 months ago (2016-06-23 05:18:41 UTC) #4
dominickn
PTAL, thanks! Now with a different rebase date. https://codereview.chromium.org/2082953002/diff/1/chrome/browser/engagement/site_engagement_score.h File chrome/browser/engagement/site_engagement_score.h (right): https://codereview.chromium.org/2082953002/diff/1/chrome/browser/engagement/site_engagement_score.h#newcode71 chrome/browser/engagement/site_engagement_score.h:71: OBSOLETE_LAST_ENGAGEMENT_PERIOD_IN_HOURS, ...
4 years, 5 months ago (2016-06-27 02:53:35 UTC) #6
calamity
lgtm. I'm worried that the tests are getting too arcane. There's random stuff littered about ...
4 years, 5 months ago (2016-06-28 01:48:26 UTC) #7
dominickn
Agreed on the tests becoming more arcane, I'll file a PE bug on test improvement ...
4 years, 5 months ago (2016-06-28 01:54:49 UTC) #8
dominickn
+anthonyvd for profile.cc. PTAL, thanks!
4 years, 5 months ago (2016-06-28 02:46:14 UTC) #10
anthonyvd
profile.cc lgtm
4 years, 5 months ago (2016-06-28 14:51:39 UTC) #11
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/2082953002/40001
4 years, 5 months ago (2016-06-28 23:35:23 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/88720) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
4 years, 5 months ago (2016-06-28 23:43:57 UTC) #15
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/2082953002/60001
4 years, 5 months ago (2016-06-29 00:24:48 UTC) #18
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-06-29 02:09:56 UTC) #20
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 02:11:29 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/709246a0f3afee77f19d056a6306d2f63b613fad
Cr-Commit-Position: refs/heads/master@{#402653}

Powered by Google App Engine
This is Rietveld 408576698