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

Issue 1427913002: Implement media playing engagement detection for the site engagement service. (Closed)

Created:
5 years, 1 month ago by dominickn
Modified:
5 years, 1 month ago
Reviewers:
calamity, Ilya Sherman
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@user-input-event
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Implement media engagement detection for the site engagement service. This CL refactors engagement tracking into an abstract base class, with subclasses for user input and media playing detection. Media play and pause events are now periodically observed and contribute to site engagement. BUG=464234 Committed: https://crrev.com/0f08350dc3f91ba6a06665c3e00feb1d6afd469e Cr-Commit-Position: refs/heads/master@{#358254}

Patch Set 1 #

Patch Set 2 : Tests #

Total comments: 20

Patch Set 3 : Addressing reviewer comments #

Total comments: 4

Patch Set 4 : Rebase #

Patch Set 5 : Addressing nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+382 lines, -88 lines) Patch
M chrome/browser/engagement/site_engagement_helper.h View 1 2 3 4 3 chunks +86 lines, -24 lines 0 comments Download
M chrome/browser/engagement/site_engagement_helper.cc View 1 2 6 chunks +93 lines, -33 lines 0 comments Download
M chrome/browser/engagement/site_engagement_helper_unittest.cc View 1 2 8 chunks +111 lines, -15 lines 0 comments Download
M chrome/browser/engagement/site_engagement_metrics.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/engagement/site_engagement_service.h View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/engagement/site_engagement_service.cc View 1 2 3 4 5 chunks +35 lines, -2 lines 0 comments Download
M chrome/browser/engagement/site_engagement_service_unittest.cc View 1 6 chunks +40 lines, -14 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 21 (9 generated)
dominickn
calamity: please review site engagement isherman: please review histograms. Thanks!
5 years, 1 month ago (2015-11-03 02:30:06 UTC) #5
Ilya Sherman
histograms lgtm
5 years, 1 month ago (2015-11-03 02:36:34 UTC) #6
calamity
https://codereview.chromium.org/1427913002/diff/20001/chrome/browser/engagement/site_engagement_helper.cc File chrome/browser/engagement/site_engagement_helper.cc (right): https://codereview.chromium.org/1427913002/diff/20001/chrome/browser/engagement/site_engagement_helper.cc#newcode118 chrome/browser/engagement/site_engagement_helper.cc:118: Pause(); Okay, now that this is checking on a ...
5 years, 1 month ago (2015-11-03 04:49:46 UTC) #7
dominickn
Thanks! https://codereview.chromium.org/1427913002/diff/20001/chrome/browser/engagement/site_engagement_helper.cc File chrome/browser/engagement/site_engagement_helper.cc (right): https://codereview.chromium.org/1427913002/diff/20001/chrome/browser/engagement/site_engagement_helper.cc#newcode118 chrome/browser/engagement/site_engagement_helper.cc:118: Pause(); On 2015/11/03 04:49:45, calamity wrote: > Okay, ...
5 years, 1 month ago (2015-11-03 07:03:55 UTC) #8
calamity
lgtm https://codereview.chromium.org/1427913002/diff/40001/chrome/browser/engagement/site_engagement_helper.h File chrome/browser/engagement/site_engagement_helper.h (right): https://codereview.chromium.org/1427913002/diff/40001/chrome/browser/engagement/site_engagement_helper.h#newcode75 chrome/browser/engagement/site_engagement_helper.h:75: // Called when the timer expires and engagement ...
5 years, 1 month ago (2015-11-04 02:08:11 UTC) #9
dominickn
Thanks! Will need the dependency patchset to land before sending this one to the CQ. ...
5 years, 1 month ago (2015-11-04 04:20:32 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1427913002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1427913002/80001
5 years, 1 month ago (2015-11-05 01:50:59 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 1 month ago (2015-11-05 01:58:14 UTC) #14
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/8658a8950b57449582033d6a8085e06fc34aa8c7 Cr-Commit-Position: refs/heads/master@{#357978}
5 years, 1 month ago (2015-11-05 01:58:56 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1427913002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1427913002/80001
5 years, 1 month ago (2015-11-06 02:40:14 UTC) #19
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 1 month ago (2015-11-06 04:25:14 UTC) #20
commit-bot: I haz the power
5 years, 1 month ago (2015-11-06 04:26:00 UTC) #21
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/0f08350dc3f91ba6a06665c3e00feb1d6afd469e
Cr-Commit-Position: refs/heads/master@{#358254}

Powered by Google App Engine
This is Rietveld 408576698