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

Issue 567123002: Cleanup template in CdmPromise (Closed)

Created:
6 years, 3 months ago by jrummell
Modified:
6 years, 3 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, eme-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

CdmPromise to use CdmPromiseTraits so specializations not needed Due to GetResolveParameterType(), the template was specialized for all the cases used. Adding CdmPromiseTraits so that the specializations are not needed, and the type set in the constructor appropriately. BUG=358271 TEST=existing EME tests still pass Committed: https://crrev.com/d2fa738da06c08fe136dedc2212e76174de94772 Cr-Commit-Position: refs/heads/master@{#296112}

Patch Set 1 #

Total comments: 1

Patch Set 2 : back to promise #

Total comments: 22

Patch Set 3 : ReportResultToUMA #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -134 lines) Patch
M media/base/cdm_promise.h View 1 2 1 chunk +26 lines, -41 lines 4 comments Download
M media/base/cdm_promise.cc View 1 2 2 chunks +77 lines, -93 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
jrummell
PTAL. Will override these classes to hold a WebCDMResult in order to simplify my other ...
6 years, 3 months ago (2014-09-13 02:09:09 UTC) #2
sandersd (OOO until July 31)
https://codereview.chromium.org/567123002/diff/1/media/base/cdm_promise.h File media/base/cdm_promise.h (right): https://codereview.chromium.org/567123002/diff/1/media/base/cdm_promise.h#newcode75 media/base/cdm_promise.h:75: void ResolveBase(); As discussed, rename as ReportResolution().
6 years, 3 months ago (2014-09-16 00:42:54 UTC) #3
xhwang
I skimmed this CL. It seems the we have to specialize all derived classes of ...
6 years, 3 months ago (2014-09-16 00:58:00 UTC) #4
ddorwin
On 2014/09/16 00:58:00, xhwang wrote: > I skimmed this CL. It seems the we have ...
6 years, 3 months ago (2014-09-18 01:12:06 UTC) #5
jrummell
Updated to switch back to template without all the specialization.
6 years, 3 months ago (2014-09-19 17:50:51 UTC) #7
ddorwin
Thanks! https://codereview.chromium.org/567123002/diff/40001/media/base/cdm_promise.cc File media/base/cdm_promise.cc (right): https://codereview.chromium.org/567123002/diff/40001/media/base/cdm_promise.cc#newcode98 media/base/cdm_promise.cc:98: base::LinearHistogram::FactoryGet( As discussed offline, it might make sense ...
6 years, 3 months ago (2014-09-19 20:56:46 UTC) #8
xhwang
https://codereview.chromium.org/567123002/diff/40001/media/base/cdm_promise.cc File media/base/cdm_promise.cc (right): https://codereview.chromium.org/567123002/diff/40001/media/base/cdm_promise.cc#newcode19 media/base/cdm_promise.cc:19: return CdmPromise::VOID_TYPE; You can simply do: static const CdmPromise::ResolveParameterType ...
6 years, 3 months ago (2014-09-20 00:34:50 UTC) #9
jrummell
Updated. https://codereview.chromium.org/567123002/diff/40001/media/base/cdm_promise.cc File media/base/cdm_promise.cc (right): https://codereview.chromium.org/567123002/diff/40001/media/base/cdm_promise.cc#newcode19 media/base/cdm_promise.cc:19: return CdmPromise::VOID_TYPE; On 2014/09/20 00:34:50, xhwang wrote: > ...
6 years, 3 months ago (2014-09-22 19:21:11 UTC) #10
ddorwin
LGTM with comment in PS2 and pending xhwang's review. Thanks! https://codereview.chromium.org/567123002/diff/40001/media/base/cdm_promise.h File media/base/cdm_promise.h (right): https://codereview.chromium.org/567123002/diff/40001/media/base/cdm_promise.h#newcode98 ...
6 years, 3 months ago (2014-09-22 20:46:31 UTC) #11
xhwang
lgtm % comments for future CL https://codereview.chromium.org/567123002/diff/60001/media/base/cdm_promise.h File media/base/cdm_promise.h (right): https://codereview.chromium.org/567123002/diff/60001/media/base/cdm_promise.h#newcode65 media/base/cdm_promise.h:65: CdmPromise(ResolveParameterType parameter_type, PromiseRejectedCB ...
6 years, 3 months ago (2014-09-22 20:55:32 UTC) #12
jrummell
Thanks for the reviews. https://codereview.chromium.org/567123002/diff/40001/media/base/cdm_promise.h File media/base/cdm_promise.h (right): https://codereview.chromium.org/567123002/diff/40001/media/base/cdm_promise.h#newcode98 media/base/cdm_promise.h:98: // Allow subclasses to completely ...
6 years, 3 months ago (2014-09-22 23:57:32 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/567123002/60001
6 years, 3 months ago (2014-09-22 23:59:03 UTC) #15
commit-bot: I haz the power
Committed patchset #3 (id:60001) as eab6221c14097d4b4c9f25702bc1b741d64f5048
6 years, 3 months ago (2014-09-23 00:49:23 UTC) #16
commit-bot: I haz the power
6 years, 3 months ago (2014-09-23 00:49:52 UTC) #17
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d2fa738da06c08fe136dedc2212e76174de94772
Cr-Commit-Position: refs/heads/master@{#296112}

Powered by Google App Engine
This is Rietveld 408576698