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

Issue 2780533004: Start recording background video watch time. (Closed)

Created:
3 years, 9 months ago by DaleCurtis
Modified:
3 years, 8 months ago
CC:
chromium-reviews, darin-cc_chromium.org, feature-media-reviews_chromium.org, jam
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Start recording background video watch time. YouTube data suggests background video watch time is significant, so start counting this within a new set of Media.AudioVideo.Background buckets. Background collection is done by creating an internal WatchTimeReporter that is played/paused when hidden/shown occur. This allows us to keep the logic for reporting watch time simple. This change also cleans up how watch time metrics are stored inside the MediaInternals class as the number of histograms continues to grow. We were lacking tests for this portion of watch time reporting, so those have been added as well. There are a couple of minor fixes to the WatchTimeReporter which should only affect tests, but may result in small watch time increases as samples are recorded earlier than previously (i.e. at player destruction versus process destruction). BUG=none TEST=new tests. Review-Url: https://codereview.chromium.org/2780533004 Cr-Commit-Position: refs/heads/master@{#461321} Committed: https://chromium.googlesource.com/chromium/src/+/c45b1c4ef18fa397013d1109dd9abe1f01543b3c

Patch Set 1 : Add moar tests. #

Total comments: 4

Patch Set 2 : Add moar tests. #

Patch Set 3 : Fix copy-init issues. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+788 lines, -174 lines) Patch
M content/browser/media/media_internals.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/media/media_internals.cc View 1 7 chunks +51 lines, -100 lines 0 comments Download
M content/browser/media/media_internals_unittest.cc View 1 2 3 chunks +280 lines, -6 lines 0 comments Download
M media/base/media_log.h View 3 chunks +13 lines, -0 lines 0 comments Download
M media/base/media_log.cc View 2 chunks +50 lines, -2 lines 0 comments Download
M media/blink/watch_time_reporter.h View 1 7 chunks +44 lines, -6 lines 0 comments Download
M media/blink/watch_time_reporter.cc View 1 8 chunks +105 lines, -53 lines 0 comments Download
M media/blink/watch_time_reporter_unittest.cc View 1 10 chunks +222 lines, -6 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
DaleCurtis
holte@ for histograms.xml and media_internals_unittest.cc usage of base::HistogramTester. sandersd@ for everything. I'm still writing more ...
3 years, 8 months ago (2017-03-31 01:08:35 UTC) #6
Steven Holte
lgtm
3 years, 8 months ago (2017-03-31 01:15:07 UTC) #7
sandersd (OOO until July 31)
Please change commit title to describe the behavior rather than the implementation. LGTM! https://codereview.chromium.org/2780533004/diff/40001/content/browser/media/media_internals.cc File ...
3 years, 8 months ago (2017-03-31 20:51:06 UTC) #8
DaleCurtis
Thanks for review. Comments addressed, and way more tests added. https://codereview.chromium.org/2780533004/diff/40001/content/browser/media/media_internals.cc File content/browser/media/media_internals.cc (right): https://codereview.chromium.org/2780533004/diff/40001/content/browser/media/media_internals.cc#newcode337 ...
3 years, 8 months ago (2017-04-01 00:51:35 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/2780533004/60001
3 years, 8 months ago (2017-04-01 00:52:00 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_compile_dbg_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_compile_dbg_ng/builds/268017)
3 years, 8 months ago (2017-04-01 01:21:50 UTC) #16
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/2780533004/80001
3 years, 8 months ago (2017-04-01 05:25:19 UTC) #19
commit-bot: I haz the power
3 years, 8 months ago (2017-04-01 07:15:48 UTC) #22
Message was sent while issue was closed.
Committed patchset #3 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/c45b1c4ef18fa397013d1109dd9a...

Powered by Google App Engine
This is Rietveld 408576698