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

Issue 568623003: CdmAdapter: Report size of the file read by CDM via FileIO. (Closed)

Created:
6 years, 3 months ago by xhwang
Modified:
6 years, 3 months ago
Reviewers:
Ilya Sherman, ddorwin
CC:
chromium-reviews, feature-media-reviews_chromium.org, yusukes+watch_chromium.org, tzik, binji+watch_chromium.org, raymes+watch_chromium.org, eme-reviews_chromium.org, teravest+watch_chromium.org, nfullagar1, piman+watch_chromium.org, noelallen1, ihf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

CdmAdapter: Report size of the file read by CDM via FileIO. We report when: 1, The first time a file is fully read. 2, After the CDM throws an error with a special system code. BUG=413812 TEST=Tested and both new UMA show in about://histograms. Committed: https://crrev.com/fe40560f991d5334aa5bae4f1d527662b76a99e8 Cr-Commit-Position: refs/heads/master@{#294843}

Patch Set 1 #

Total comments: 6

Patch Set 2 : comment addressed and updated historgrams.xml #

Total comments: 2

Patch Set 3 : comments addressed #

Patch Set 4 : rebase only #

Patch Set 5 : Only report the first file read in CdmFileIOImpl (becase the completion cb can only be used once). #

Total comments: 2

Patch Set 6 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -5 lines) Patch
M media/cdm/ppapi/cdm_adapter.h View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
M media/cdm/ppapi/cdm_adapter.cc View 1 2 3 4 5 chunks +43 lines, -2 lines 0 comments Download
M media/cdm/ppapi/cdm_file_io_impl.h View 1 2 3 4 5 2 chunks +11 lines, -1 line 0 comments Download
M media/cdm/ppapi/cdm_file_io_impl.cc View 1 2 3 4 5 2 chunks +15 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
xhwang
PTAL
6 years, 3 months ago (2014-09-12 00:17:32 UTC) #2
ddorwin
https://codereview.chromium.org/568623003/diff/1/media/cdm/ppapi/cdm_adapter.cc File media/cdm/ppapi/cdm_adapter.cc (right): https://codereview.chromium.org/568623003/diff/1/media/cdm/ppapi/cdm_adapter.cc#newcode24 media/cdm/ppapi/cdm_adapter.cc:24: const uint32_t kSizeKBMin = 1; What about 0? There ...
6 years, 3 months ago (2014-09-12 02:26:28 UTC) #3
xhwang
ddorwin: PTAL again. isherman: Please OWNERS review histograms.xml. https://codereview.chromium.org/568623003/diff/1/media/cdm/ppapi/cdm_adapter.cc File media/cdm/ppapi/cdm_adapter.cc (right): https://codereview.chromium.org/568623003/diff/1/media/cdm/ppapi/cdm_adapter.cc#newcode24 media/cdm/ppapi/cdm_adapter.cc:24: const ...
6 years, 3 months ago (2014-09-12 04:30:13 UTC) #5
ddorwin
LGTM with suggestion https://codereview.chromium.org/568623003/diff/20001/media/cdm/ppapi/cdm_file_io_impl.h File media/cdm/ppapi/cdm_file_io_impl.h (right): https://codereview.chromium.org/568623003/diff/20001/media/cdm/ppapi/cdm_file_io_impl.h#newcode40 media/cdm/ppapi/cdm_file_io_impl.h:40: const pp::CompletionCallback& file_read_cb); Comment that the ...
6 years, 3 months ago (2014-09-12 05:44:30 UTC) #6
xhwang
comments addressed
6 years, 3 months ago (2014-09-12 17:47:32 UTC) #7
xhwang
https://codereview.chromium.org/568623003/diff/20001/media/cdm/ppapi/cdm_file_io_impl.h File media/cdm/ppapi/cdm_file_io_impl.h (right): https://codereview.chromium.org/568623003/diff/20001/media/cdm/ppapi/cdm_file_io_impl.h#newcode40 media/cdm/ppapi/cdm_file_io_impl.h:40: const pp::CompletionCallback& file_read_cb); On 2014/09/12 05:44:29, ddorwin wrote: > ...
6 years, 3 months ago (2014-09-12 17:48:45 UTC) #8
Ilya Sherman
histograms LGTM
6 years, 3 months ago (2014-09-12 19:40:44 UTC) #9
xhwang
rebase only
6 years, 3 months ago (2014-09-12 23:03:43 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/568623003/60001
6 years, 3 months ago (2014-09-12 23:12:34 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/9220)
6 years, 3 months ago (2014-09-13 01:55:41 UTC) #14
xhwang
The callback created by CompletionCallbackFactory is for single-use only: https://code.google.com/p/chromium/codesearch#chromium/src/ppapi/utility/completion_callback_factory.h&l=249 So I updated this CL ...
6 years, 3 months ago (2014-09-14 03:59:21 UTC) #15
ddorwin
LGTM % comment https://codereview.chromium.org/568623003/diff/80001/media/cdm/ppapi/cdm_file_io_impl.h File media/cdm/ppapi/cdm_file_io_impl.h (right): https://codereview.chromium.org/568623003/diff/80001/media/cdm/ppapi/cdm_file_io_impl.h#newcode42 media/cdm/ppapi/cdm_file_io_impl.h:42: const pp::CompletionCallback& file_read_cb); rename the cb ...
6 years, 3 months ago (2014-09-14 21:48:00 UTC) #16
xhwang
comments addressed
6 years, 3 months ago (2014-09-15 03:44:10 UTC) #17
xhwang
https://codereview.chromium.org/568623003/diff/80001/media/cdm/ppapi/cdm_file_io_impl.h File media/cdm/ppapi/cdm_file_io_impl.h (right): https://codereview.chromium.org/568623003/diff/80001/media/cdm/ppapi/cdm_file_io_impl.h#newcode42 media/cdm/ppapi/cdm_file_io_impl.h:42: const pp::CompletionCallback& file_read_cb); On 2014/09/14 21:47:59, ddorwin wrote: > ...
6 years, 3 months ago (2014-09-15 03:44:31 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/568623003/100001
6 years, 3 months ago (2014-09-15 03:44:54 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_x64_rel_swarming on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_swarming/builds/9416)
6 years, 3 months ago (2014-09-15 05:01:09 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/568623003/100001
6 years, 3 months ago (2014-09-15 16:09:54 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001) as 64e253e1d88d88ceb73f1e44a138685bcaffa69b
6 years, 3 months ago (2014-09-15 17:24:05 UTC) #25
commit-bot: I haz the power
6 years, 3 months ago (2014-09-15 17:28:54 UTC) #26
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/fe40560f991d5334aa5bae4f1d527662b76a99e8
Cr-Commit-Position: refs/heads/master@{#294843}

Powered by Google App Engine
This is Rietveld 408576698