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

Issue 1729063003: media: Reject pending CDM promise during destruction. (Closed)

Created:
4 years, 10 months ago by xhwang
Modified:
4 years, 9 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, Aaron Boodman, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, abarth-chromium, feature-media-reviews_chromium.org, dglazkov+blink, blink-reviews, blink-reviews-api_chromium.org, darin (slow to review), ben+mojo_chromium.org, kinuko+watch
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

media: Reject pending CDM promise during destruction. There are legit cases where a CDM promise could be destructed before it's fulfilled. For example, a promise could be bound into a callback and the callback is dropped. BUG=585356 Committed: https://crrev.com/bce64ffe322ab1730a4aa81e47ab85ceb30e2971 Cr-Commit-Position: refs/heads/master@{#378588}

Patch Set 1 #

Total comments: 6

Patch Set 2 : comments addressed #

Total comments: 4

Patch Set 3 : rebase only #

Patch Set 4 : comments addressed #

Total comments: 2

Patch Set 5 : rebase only #

Patch Set 6 : comments addressed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -12 lines) Patch
M chromecast/media/cdm/browser_cdm_cast.cc View 1 2 chunks +7 lines, -2 lines 0 comments Download
M content/browser/media/cdm/browser_cdm_manager.cc View 1 2 chunks +6 lines, -1 line 0 comments Download
M media/base/cdm_callback_promise.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M media/base/cdm_callback_promise.cc View 1 3 chunks +9 lines, -2 lines 0 comments Download
M media/base/cdm_promise.h View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
M media/blink/cdm_result_promise.h View 1 2 3 4 5 4 chunks +8 lines, -4 lines 0 comments Download
M media/blink/new_session_cdm_result_promise.cc View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M media/mojo/services/mojo_cdm_promise.h View 1 1 chunk +3 lines, -1 line 0 comments Download
M media/mojo/services/mojo_cdm_promise.cc View 1 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 40 (9 generated)
xhwang
Please see the bug for the context. I still have two InternalCdmPromise to fix. But ...
4 years, 10 months ago (2016-02-25 01:09:20 UTC) #2
jrummell
https://codereview.chromium.org/1729063003/diff/1/media/base/cdm_callback_promise.cc File media/base/cdm_callback_promise.cc (right): https://codereview.chromium.org/1729063003/diff/1/media/base/cdm_callback_promise.cc#newcode34 media/base/cdm_callback_promise.cc:34: MarkPromiseSettled(); This call sets a flag to indicate that ...
4 years, 10 months ago (2016-02-25 02:30:03 UTC) #3
xhwang
https://codereview.chromium.org/1729063003/diff/1/media/base/cdm_callback_promise.cc File media/base/cdm_callback_promise.cc (right): https://codereview.chromium.org/1729063003/diff/1/media/base/cdm_callback_promise.cc#newcode34 media/base/cdm_callback_promise.cc:34: MarkPromiseSettled(); On 2016/02/25 02:30:03, jrummell wrote: > This call ...
4 years, 10 months ago (2016-02-25 07:49:21 UTC) #4
ddorwin
https://codereview.chromium.org/1729063003/diff/1/media/base/cdm_callback_promise.cc File media/base/cdm_callback_promise.cc (right): https://codereview.chromium.org/1729063003/diff/1/media/base/cdm_callback_promise.cc#newcode24 media/base/cdm_callback_promise.cc:24: return; // Promise has already been settled. ? Or ...
4 years, 10 months ago (2016-02-25 19:14:12 UTC) #5
xhwang
comment only https://codereview.chromium.org/1729063003/diff/1/media/mojo/services/mojo_cdm_promise.cc File media/mojo/services/mojo_cdm_promise.cc (right): https://codereview.chromium.org/1729063003/diff/1/media/mojo/services/mojo_cdm_promise.cc#newcode43 media/mojo/services/mojo_cdm_promise.cc:43: std::string message = On 2016/02/25 19:14:12, ddorwin ...
4 years, 10 months ago (2016-02-25 19:53:11 UTC) #6
xhwang
On 2016/02/25 19:53:11, xhwang wrote: > comment only > > https://codereview.chromium.org/1729063003/diff/1/media/mojo/services/mojo_cdm_promise.cc > File media/mojo/services/mojo_cdm_promise.cc (right): ...
4 years, 10 months ago (2016-02-25 19:55:44 UTC) #7
xhwang
PTAL again!
4 years, 10 months ago (2016-02-26 06:10:33 UTC) #8
ddorwin
lgtm https://chromiumcodereview.appspot.com/1729063003/diff/20001/media/base/cdm_promise.h File media/base/cdm_promise.h (right): https://chromiumcodereview.appspot.com/1729063003/diff/20001/media/base/cdm_promise.h#newcode112 media/base/cdm_promise.h:112: void RejectPromiseOnDestruction() { // Must be called by ...
4 years, 10 months ago (2016-02-26 17:29:28 UTC) #9
jrummell
lgtm
4 years, 10 months ago (2016-02-26 18:55:05 UTC) #10
xhwang
rebase only
4 years, 10 months ago (2016-02-26 20:48:20 UTC) #11
xhwang
comments addressed
4 years, 10 months ago (2016-02-26 20:52:13 UTC) #12
xhwang
https://chromiumcodereview.appspot.com/1729063003/diff/20001/media/base/cdm_promise.h File media/base/cdm_promise.h (right): https://chromiumcodereview.appspot.com/1729063003/diff/20001/media/base/cdm_promise.h#newcode112 media/base/cdm_promise.h:112: void RejectPromiseOnDestruction() { On 2016/02/26 17:29:28, ddorwin wrote: > ...
4 years, 10 months ago (2016-02-26 20:52:21 UTC) #13
xhwang
halliwell@chromium.org: Please OWNERS review trivial changes in chromecast/ haraken@chromium.org: Please OWNERS review trivial changes in ...
4 years, 10 months ago (2016-02-26 20:55:37 UTC) #15
halliwell
On 2016/02/26 20:55:37, xhwang wrote: > mailto:halliwell@chromium.org: Please OWNERS review trivial changes in chromecast/ > ...
4 years, 10 months ago (2016-02-26 21:10:31 UTC) #16
xhwang
haraken@chromium.org: Please OWNERS review trivial changes in third_party/Webkit
4 years, 10 months ago (2016-02-27 03:58:24 UTC) #18
haraken
WebKit LGTM but you'll need to get an LG from a public API owner.
4 years, 10 months ago (2016-02-27 04:11:28 UTC) #19
xhwang
pfeldman@chromium.org: Please OWNERS review changes in third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h
4 years, 10 months ago (2016-02-27 04:22:46 UTC) #21
xhwang
pfeldman: kindly ping!
4 years, 9 months ago (2016-03-01 16:47:54 UTC) #22
pfeldman
https://chromiumcodereview.appspot.com/1729063003/diff/60001/third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h File third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h (right): https://chromiumcodereview.appspot.com/1729063003/diff/60001/third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h#newcode49 third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h:49: BLINK_PLATFORM_EXPORT bool isCompleted(); It seems counter-intuitive that you query ...
4 years, 9 months ago (2016-03-01 18:34:31 UTC) #23
xhwang
https://chromiumcodereview.appspot.com/1729063003/diff/60001/third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h File third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h (right): https://chromiumcodereview.appspot.com/1729063003/diff/60001/third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h#newcode49 third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h:49: BLINK_PLATFORM_EXPORT bool isCompleted(); On 2016/03/01 18:34:31, pfeldman wrote: > ...
4 years, 9 months ago (2016-03-01 18:51:06 UTC) #24
pfeldman
> This is exactly what this CL is doing. > > isCompleted() is added only ...
4 years, 9 months ago (2016-03-01 18:53:17 UTC) #25
xhwang
rebase only
4 years, 9 months ago (2016-03-01 20:14:40 UTC) #26
xhwang
comments addressed
4 years, 9 months ago (2016-03-01 20:17:54 UTC) #27
xhwang
On 2016/03/01 18:53:17, pfeldman wrote: > > This is exactly what this CL is doing. ...
4 years, 9 months ago (2016-03-01 20:18:31 UTC) #28
xhwang
On 2016/03/01 18:53:17, pfeldman wrote: > > This is exactly what this CL is doing. ...
4 years, 9 months ago (2016-03-01 20:18:32 UTC) #29
xhwang
On 2016/03/01 20:18:32, xhwang wrote: > On 2016/03/01 18:53:17, pfeldman wrote: > > > This ...
4 years, 9 months ago (2016-03-01 20:19:42 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1729063003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1729063003/100001
4 years, 9 months ago (2016-03-01 20:20:37 UTC) #32
pfeldman
On 2016/03/01 20:20:37, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
4 years, 9 months ago (2016-03-01 20:31:35 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1729063003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1729063003/100001
4 years, 9 months ago (2016-03-01 22:40:49 UTC) #37
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 9 months ago (2016-03-01 22:58:08 UTC) #38
commit-bot: I haz the power
4 years, 9 months ago (2016-03-01 22:59:29 UTC) #40
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/bce64ffe322ab1730a4aa81e47ab85ceb30e2971
Cr-Commit-Position: refs/heads/master@{#378588}

Powered by Google App Engine
This is Rietveld 408576698