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

Issue 518523002: Handle incorrect promise resolving (Closed)

Created:
6 years, 3 months ago by jrummell
Modified:
6 years, 3 months ago
Reviewers:
bbudge, xhwang
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Handle incorrect promise resolving Due to an issue in the CDM, when a session to be loaded is not found, the CDM calls PromiseResolve() instead of the expected PromiseResolveWithSession(""). This change detects this situation and handles it properly. BUG=408337 TEST=existing EME tests pass Committed: https://crrev.com/fd0069d61b1f3281a2634bf907a96bebee7fb396 Cr-Commit-Position: refs/heads/master@{#292497}

Patch Set 1 #

Total comments: 2

Patch Set 2 : add todo #

Total comments: 2

Patch Set 3 : equals #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -4 lines) Patch
M content/renderer/pepper/content_decryptor_delegate.cc View 1 2 2 chunks +17 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
jrummell
jrummell@chromium.org changed reviewers: + xhwang@chromium.org
6 years, 3 months ago (2014-08-28 20:26:04 UTC) #1
jrummell
PTAL.
6 years, 3 months ago (2014-08-28 20:26:04 UTC) #2
xhwang
lgtm https://codereview.chromium.org/518523002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/518523002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc#newcode631 content/renderer/pepper/content_decryptor_delegate.cc:631: // PromiseResolvedWithSession(""), so emulate that here until 408330 ...
6 years, 3 months ago (2014-08-28 20:33:51 UTC) #3
jrummell
jrummell@chromium.org changed reviewers: + bbudge@chromium.org
6 years, 3 months ago (2014-08-28 21:26:27 UTC) #4
jrummell
+bbudge@ for OWNERS review https://codereview.chromium.org/518523002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/518523002/diff/1/content/renderer/pepper/content_decryptor_delegate.cc#newcode631 content/renderer/pepper/content_decryptor_delegate.cc:631: // PromiseResolvedWithSession(""), so emulate that ...
6 years, 3 months ago (2014-08-28 21:26:27 UTC) #5
bbudge
One nit, otherwise LGTM https://codereview.chromium.org/518523002/diff/20001/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/518523002/diff/20001/content/renderer/pepper/content_decryptor_delegate.cc#newcode636 content/renderer/pepper/content_decryptor_delegate.cc:636: static_cast<NewSessionCdmPromise*>(promise.get())); nit: The assignment syntax ...
6 years, 3 months ago (2014-08-28 21:41:41 UTC) #6
jrummell
Thanks for the reviews. https://codereview.chromium.org/518523002/diff/20001/content/renderer/pepper/content_decryptor_delegate.cc File content/renderer/pepper/content_decryptor_delegate.cc (right): https://codereview.chromium.org/518523002/diff/20001/content/renderer/pepper/content_decryptor_delegate.cc#newcode636 content/renderer/pepper/content_decryptor_delegate.cc:636: static_cast<NewSessionCdmPromise*>(promise.get())); On 2014/08/28 21:41:41, bbudge ...
6 years, 3 months ago (2014-08-28 21:52:24 UTC) #7
jrummell
The CQ bit was checked by jrummell@chromium.org
6 years, 3 months ago (2014-08-28 21:52:27 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jrummell@chromium.org/518523002/40001
6 years, 3 months ago (2014-08-28 21:53:47 UTC) #9
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 11f5cdbb965bc0b83f51f5d3c92bed64c3c99def
6 years, 3 months ago (2014-08-28 23:34:09 UTC) #10
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:03:32 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/fd0069d61b1f3281a2634bf907a96bebee7fb396
Cr-Commit-Position: refs/heads/master@{#292497}

Powered by Google App Engine
This is Rietveld 408576698