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

Issue 881853002: Add UMA to report requests for key systems using RequestMediaKeyAccess (Closed)

Created:
5 years, 11 months ago by jrummell
Modified:
5 years, 10 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, asvitkine+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add UMA to report requests for key systems using RequestMediaKeyAccess Adding a UMA to keep track of the number of times RequestMediaKeyAccess is called with a particular key system, and the number of times the request succeeds. The counts are only incremented once per renderer frame. BUG=351501 TEST=existing EME tests pass, verified UMA locally Committed: https://crrev.com/de870139c90af7fc5957d42c8c2b0fbb09f95591 Cr-Commit-Position: refs/heads/master@{#313956}

Patch Set 1 #

Total comments: 2

Patch Set 2 : GetReporter #

Total comments: 22

Patch Set 3 : lazy #

Total comments: 4

Patch Set 4 : simplify #

Total comments: 2

Patch Set 5 : remove line + rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+117 lines, -0 lines) Patch
M media/blink/webencryptedmediaclient_impl.h View 1 2 3 4 2 chunks +17 lines, -0 lines 0 comments Download
M media/blink/webencryptedmediaclient_impl.cc View 1 2 3 4 7 chunks +77 lines, -0 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 3 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (3 generated)
jrummell
PTAL.
5 years, 11 months ago (2015-01-27 18:36:21 UTC) #2
sandersd (OOO until July 31)
https://codereview.chromium.org/881853002/diff/1/media/blink/webencryptedmediaclient_impl.h File media/blink/webencryptedmediaclient_impl.h (right): https://codereview.chromium.org/881853002/diff/1/media/blink/webencryptedmediaclient_impl.h#newcode41 media/blink/webencryptedmediaclient_impl.h:41: Reporter* LocateReporter(const std::string& key_system); GetReporter()?
5 years, 11 months ago (2015-01-27 19:04:07 UTC) #3
jrummell
Updated. https://codereview.chromium.org/881853002/diff/1/media/blink/webencryptedmediaclient_impl.h File media/blink/webencryptedmediaclient_impl.h (right): https://codereview.chromium.org/881853002/diff/1/media/blink/webencryptedmediaclient_impl.h#newcode41 media/blink/webencryptedmediaclient_impl.h:41: Reporter* LocateReporter(const std::string& key_system); On 2015/01/27 19:04:07, sandersd ...
5 years, 10 months ago (2015-01-28 21:08:09 UTC) #4
sandersd (OOO until July 31)
Ideally we can remove the copies of these strings from key_systems.cc once the prefixed API ...
5 years, 10 months ago (2015-01-29 01:23:10 UTC) #5
xhwang
https://codereview.chromium.org/881853002/diff/20001/media/blink/webencryptedmediaclient_impl.cc File media/blink/webencryptedmediaclient_impl.cc (right): https://codereview.chromium.org/881853002/diff/20001/media/blink/webencryptedmediaclient_impl.cc#newcode26 media/blink/webencryptedmediaclient_impl.cc:26: const char kWidevineKeySystemNameForUMA[] = "Widevine"; Can you use GetKeySystemNameForUMA(const ...
5 years, 10 months ago (2015-01-29 05:23:26 UTC) #6
jrummell
Updated. https://codereview.chromium.org/881853002/diff/20001/media/blink/webencryptedmediaclient_impl.cc File media/blink/webencryptedmediaclient_impl.cc (right): https://codereview.chromium.org/881853002/diff/20001/media/blink/webencryptedmediaclient_impl.cc#newcode26 media/blink/webencryptedmediaclient_impl.cc:26: const char kWidevineKeySystemNameForUMA[] = "Widevine"; On 2015/01/29 05:23:26, ...
5 years, 10 months ago (2015-01-29 22:16:07 UTC) #7
xhwang
lgtm % comments. Also, please update your CL description as well. https://codereview.chromium.org/881853002/diff/40001/media/blink/webencryptedmediaclient_impl.cc File media/blink/webencryptedmediaclient_impl.cc (right): ...
5 years, 10 months ago (2015-01-29 23:40:48 UTC) #8
jrummell
+isherman@ for histograms.xml https://codereview.chromium.org/881853002/diff/40001/media/blink/webencryptedmediaclient_impl.cc File media/blink/webencryptedmediaclient_impl.cc (right): https://codereview.chromium.org/881853002/diff/40001/media/blink/webencryptedmediaclient_impl.cc#newcode266 media/blink/webencryptedmediaclient_impl.cc:266: Reporters::iterator reporter_lookup = reporters_.find(uma_name); On 2015/01/29 ...
5 years, 10 months ago (2015-01-30 01:54:02 UTC) #10
Ilya Sherman
LGTM with the spurious line removed. https://codereview.chromium.org/881853002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/881853002/diff/60001/tools/metrics/histograms/histograms.xml#newcode62326 tools/metrics/histograms/histograms.xml:62326: +RequestMediaKeySystemAccessStatus Hmm, what ...
5 years, 10 months ago (2015-01-30 02:30:50 UTC) #11
jrummell
Thanks for the reviews. https://codereview.chromium.org/881853002/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/881853002/diff/60001/tools/metrics/histograms/histograms.xml#newcode62326 tools/metrics/histograms/histograms.xml:62326: +RequestMediaKeySystemAccessStatus On 2015/01/30 02:30:50, Ilya ...
5 years, 10 months ago (2015-01-30 18:12:12 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/881853002/80001
5 years, 10 months ago (2015-01-30 18:13:00 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 10 months ago (2015-01-30 19:10:56 UTC) #15
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 19:12:12 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/de870139c90af7fc5957d42c8c2b0fbb09f95591
Cr-Commit-Position: refs/heads/master@{#313956}

Powered by Google App Engine
This is Rietveld 408576698