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

Issue 26004002: Decouple ScriptPromise creation from ScriptPromiseResolver. (Closed)

Created:
7 years, 2 months ago by yhirano
Modified:
7 years, 2 months ago
CC:
blink-reviews, Nils Barth (inactive), kojih, jsbell+bindings_chromium.org, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, adamk+blink_chromium.org, darktears, haraken, Nate Chapin, do-not-use
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Decouple ScriptPromise creation from ScriptPromiseResolver. It is error-prone that ScriptPromiseResolver has ScriptPromise and users must explicitly call detachPromise() to detach it. Now ScriptPromiseResolver does NOT have ScriptPromise from users perspective. Also replace deprecated |fulfill| with |resolve|. BUG=304154 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=159698

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : rebase #

Total comments: 4

Patch Set 5 : #

Patch Set 6 : rebase #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : rebase #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -216 lines) Patch
M Source/bindings/bindings.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/v8/ScriptPromise.h View 1 2 3 4 5 6 3 chunks +8 lines, -0 lines 1 comment Download
A + Source/bindings/v8/ScriptPromise.cpp View 1 2 3 4 5 6 1 chunk +17 lines, -17 lines 0 comments Download
M Source/bindings/v8/ScriptPromiseResolver.h View 1 2 3 4 5 4 chunks +9 lines, -47 lines 0 comments Download
M Source/bindings/v8/ScriptPromiseResolver.cpp View 1 2 3 4 5 2 chunks +11 lines, -53 lines 0 comments Download
M Source/bindings/v8/ScriptPromiseResolverTest.cpp View 1 2 3 4 5 6 4 chunks +7 lines, -34 lines 0 comments Download
M Source/core/css/FontFaceSet.cpp View 1 2 3 4 5 6 6 chunks +15 lines, -28 lines 0 comments Download
M Source/modules/crypto/CryptoResultImpl.h View 1 2 3 4 5 6 7 2 chunks +2 lines, -4 lines 0 comments Download
M Source/modules/crypto/CryptoResultImpl.cpp View 1 2 3 4 5 6 7 2 chunks +8 lines, -13 lines 0 comments Download
M Source/modules/crypto/SubtleCrypto.cpp View 1 2 3 4 5 6 7 5 chunks +12 lines, -8 lines 0 comments Download
M Source/modules/imagebitmap/ImageBitmapFactories.cpp View 1 2 3 4 5 6 7 8 4 chunks +11 lines, -8 lines 0 comments Download
M Source/modules/serviceworkers/NavigatorServiceWorker.cpp View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -4 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
yhirano
PTAL abarth: bindings/ (and overall) alecflett: modules/serviceworker ksakamoto: core/css junov: modules/imagebitmap eroman: modules/crypto
7 years, 2 months ago (2013-10-04 12:52:37 UTC) #1
Justin Novosad
On 2013/10/04 12:52:37, yhirano wrote: > PTAL > > abarth: bindings/ (and overall) > alecflett: ...
7 years, 2 months ago (2013-10-04 14:09:51 UTC) #2
abarth-chromium
abarth: bindings <--- LGTM (the rest looks fine to me too, but I didn't review ...
7 years, 2 months ago (2013-10-04 15:46:35 UTC) #3
alecflett
lgtm for serviceworker
7 years, 2 months ago (2013-10-04 19:29:40 UTC) #4
Kunihiko Sakamoto
lgtm for FontFaceSet
7 years, 2 months ago (2013-10-06 01:53:09 UTC) #5
yhirano
eroman, can you take a look at this CL?
7 years, 2 months ago (2013-10-08 23:57:18 UTC) #6
yhirano
Adam, Eric seems busy. You reviewed many CLs for Source/modules/crypto/CryptoResultImpl.{cpp, h}, can I ask you ...
7 years, 2 months ago (2013-10-11 02:04:25 UTC) #7
abarth-chromium
https://codereview.chromium.org/26004002/diff/18001/Source/bindings/v8/ScriptPromise.h File Source/bindings/v8/ScriptPromise.h (right): https://codereview.chromium.org/26004002/diff/18001/Source/bindings/v8/ScriptPromise.h#newcode99 Source/bindings/v8/ScriptPromise.h:99: static ScriptPromise create(ScriptExecutionContext*); Rather than write comments like these, ...
7 years, 2 months ago (2013-10-11 18:18:01 UTC) #8
yhirano
https://codereview.chromium.org/26004002/diff/18001/Source/bindings/v8/ScriptPromise.h File Source/bindings/v8/ScriptPromise.h (right): https://codereview.chromium.org/26004002/diff/18001/Source/bindings/v8/ScriptPromise.h#newcode99 Source/bindings/v8/ScriptPromise.h:99: static ScriptPromise create(ScriptExecutionContext*); On 2013/10/11 18:18:02, abarth wrote: > ...
7 years, 2 months ago (2013-10-14 02:49:52 UTC) #9
abarth-chromium
lgtm https://codereview.chromium.org/26004002/diff/51001/Source/bindings/v8/ScriptPromise.h File Source/bindings/v8/ScriptPromise.h (right): https://codereview.chromium.org/26004002/diff/51001/Source/bindings/v8/ScriptPromise.h#newcode98 Source/bindings/v8/ScriptPromise.h:98: // Creates a pending promise. These comments aren't ...
7 years, 2 months ago (2013-10-15 17:40:51 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/26004002/51001
7 years, 2 months ago (2013-10-15 17:41:40 UTC) #11
commit-bot: I haz the power
7 years, 2 months ago (2013-10-15 23:30:17 UTC) #12
Message was sent while issue was closed.
Change committed as 159698

Powered by Google App Engine
This is Rietveld 408576698