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

Issue 236673003: [WebCrypto] Use ScriptPromiseResolverWithContext. (Closed)

Created:
6 years, 8 months ago by yhirano
Modified:
6 years, 8 months ago
Reviewers:
eustas, eroman, yurys
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

[WebCrypto] Use ScriptPromiseResolverWithContext. Use ScriptPromiseResolverWithContext instead of a pair of ScriptPromiseResolver and NewScriptState. This CL doen't change the behavior in many cases: The only exception is when the resolution / rejection happens on the suspended or stopped ExecutionContext. In such a case, ScriptPromiseResolver suspends or stops resolution or rejection. R=eroman@chromium.org BUG=352552 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=171940

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 12

Patch Set 6 : #

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -18 lines) Patch
M Source/modules/crypto/CryptoResultImpl.h View 3 chunks +2 lines, -7 lines 0 comments Download
M Source/modules/crypto/CryptoResultImpl.cpp View 1 2 3 4 5 6 8 chunks +5 lines, -11 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
yhirano
6 years, 8 months ago (2014-04-14 10:18:19 UTC) #1
eroman
https://codereview.chromium.org/236673003/diff/20001/Source/modules/crypto/CryptoResultImpl.cpp File Source/modules/crypto/CryptoResultImpl.cpp (left): https://codereview.chromium.org/236673003/diff/20001/Source/modules/crypto/CryptoResultImpl.cpp#oldcode91 Source/modules/crypto/CryptoResultImpl.cpp:91: NewScriptState::Scope scope(m_scriptState.get()); Are you sure this is correct? Although ...
6 years, 8 months ago (2014-04-16 02:30:00 UTC) #2
yhirano
https://codereview.chromium.org/236673003/diff/20001/Source/modules/crypto/CryptoResultImpl.cpp File Source/modules/crypto/CryptoResultImpl.cpp (left): https://codereview.chromium.org/236673003/diff/20001/Source/modules/crypto/CryptoResultImpl.cpp#oldcode91 Source/modules/crypto/CryptoResultImpl.cpp:91: NewScriptState::Scope scope(m_scriptState.get()); On 2014/04/16 02:30:01, eroman wrote: > Are ...
6 years, 8 months ago (2014-04-16 11:56:16 UTC) #3
eroman
What is the advantage of ScriptPromiseResolverWithContext for this use case? It seems like it adds ...
6 years, 8 months ago (2014-04-16 17:35:05 UTC) #4
yhirano
> What is the advantage of ScriptPromiseResolverWithContext for this use case? I'm planning to switching ...
6 years, 8 months ago (2014-04-17 01:51:25 UTC) #5
yhirano
+eustas because I don't know the answer for the below eroman's question. https://codereview.chromium.org/236673003/diff/80001/Source/modules/crypto/CryptoResultImpl.cpp#oldcode60 Hi, eustas, ...
6 years, 8 months ago (2014-04-17 02:04:05 UTC) #6
eroman
LGTM for the crypto/* changes. You may want a better reviewer for ScriptPromiseResolverWithContext.h changes -- ...
6 years, 8 months ago (2014-04-17 02:25:46 UTC) #7
eustas
On 2014/04/17 02:04:05, yhirano wrote: > +eustas because I don't know the answer for the ...
6 years, 8 months ago (2014-04-17 09:16:17 UTC) #8
eustas
6 years, 8 months ago (2014-04-17 09:16:59 UTC) #9
yurys
https://codereview.chromium.org/236673003/diff/80001/Source/modules/crypto/CryptoResultImpl.cpp File Source/modules/crypto/CryptoResultImpl.cpp (left): https://codereview.chromium.org/236673003/diff/80001/Source/modules/crypto/CryptoResultImpl.cpp#oldcode60 Source/modules/crypto/CryptoResultImpl.cpp:60: NewScriptState::Scope scope(m_scriptState.get()); On 2014/04/17 01:51:25, yhirano wrote: > On ...
6 years, 8 months ago (2014-04-17 09:27:13 UTC) #10
yhirano
Thanks. Waiting for https://codereview.chromium.org/238723009/
6 years, 8 months ago (2014-04-17 11:48:52 UTC) #11
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 8 months ago (2014-04-18 09:22:37 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/236673003/140001
6 years, 8 months ago (2014-04-18 09:22:45 UTC) #13
commit-bot: I haz the power
6 years, 8 months ago (2014-04-18 09:56:17 UTC) #14
Message was sent while issue was closed.
Change committed as 171940

Powered by Google App Engine
This is Rietveld 408576698