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

Issue 22436002: Replace EntryArray type by an Entry[] (Closed)

Created:
7 years, 4 months ago by do-not-use
Modified:
7 years, 4 months ago
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, adamk+blink_chromium.org, aandrey+blink_chromium.org, Nils Barth (inactive), caseq+blink_chromium.org, Nate Chapin, yurys+blink_chromium.org, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, devtools-reviews_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, eustas+blink_chromium.org, tommyw+watchlist_chromium.org, paulirish+reviews_chromium.org, kojih, jsbell+bindings_chromium.org, alph+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, lgombos
Visibility:
Public.

Description

Replace EntryArray type by an Entry[] Replace EntryArray type by an Entry[] to match the specification: http://www.w3.org/TR/file-system-api/#the-entriescallback-interface As a consequence, regular JavaScript Array methods can now be used. There is no longer an item() method exposed but developers usually access items using [] operator. EntryArraySync is not converted to an EntrySync[] in this patch to reduce patch size. It should be converted in a follow-up patch. BUG=268356 R=arv@chromium.org, haraken@chromium.org, kinuko@chromium.org, tkent@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=155749

Patch Set 1 #

Total comments: 2

Patch Set 2 : kill DispatchCallbackTaskBase base class #

Total comments: 4

Patch Set 3 : Stop using concat #

Patch Set 4 : Rebase on master #

Unified diffs Side-by-side diffs Delta from patch set Stats (+111 lines, -216 lines) Patch
M LayoutTests/fast/filesystem/not-enough-arguments.html View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/filesystem/not-enough-arguments-expected.txt View 1 chunk +0 lines, -1 line 0 comments Download
M LayoutTests/fast/filesystem/read-directory-expected.txt View 1 chunk +2 lines, -0 lines 0 comments Download
M LayoutTests/fast/filesystem/resources/op-tests-helper.js View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M LayoutTests/fast/filesystem/script-tests/read-directory.js View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M Source/bindings/scripts/code_generator_v8.py View 4 chunks +15 lines, -5 lines 0 comments Download
M Source/core/inspector/InspectorFileSystemAgent.cpp View 1 5 chunks +9 lines, -9 lines 0 comments Download
M Source/modules/filesystem/DOMFileSystem.h View 1 4 chunks +40 lines, -3 lines 0 comments Download
M Source/modules/filesystem/DOMFileSystemBase.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/filesystem/DirectoryReader.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/filesystem/EntriesCallback.h View 1 chunk +4 lines, -2 lines 0 comments Download
M Source/modules/filesystem/EntriesCallback.idl View 1 chunk +1 line, -1 line 0 comments Download
D Source/modules/filesystem/EntryArray.h View 1 chunk +0 lines, -64 lines 0 comments Download
D Source/modules/filesystem/EntryArray.cpp View 1 chunk +0 lines, -48 lines 0 comments Download
D Source/modules/filesystem/EntryArray.idl View 1 chunk +0 lines, -36 lines 0 comments Download
M Source/modules/filesystem/EntryArraySync.h View 2 chunks +2 lines, -3 lines 0 comments Download
M Source/modules/filesystem/EntryArraySync.cpp View 1 chunk +4 lines, -6 lines 0 comments Download
M Source/modules/filesystem/FileSystemCallbacks.h View 3 chunks +2 lines, -2 lines 0 comments Download
M Source/modules/filesystem/FileSystemCallbacks.cpp View 3 chunks +4 lines, -5 lines 0 comments Download
M Source/modules/filesystem/HTMLInputElementFileSystem.h View 1 chunk +3 lines, -2 lines 0 comments Download
M Source/modules/filesystem/HTMLInputElementFileSystem.cpp View 2 chunks +8 lines, -8 lines 0 comments Download
M Source/modules/filesystem/HTMLInputElementFileSystem.idl View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/filesystem/SyncCallbackHelper.h View 2 chunks +6 lines, -6 lines 0 comments Download
M Source/modules/mediastream/MediaStreamTrackSourcesCallback.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/modules.gypi View 2 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
do-not-use
7 years, 4 months ago (2013-08-06 15:39:39 UTC) #1
haraken
In terms of implementation, LGTM. Given the following points, it sounds reasonable to make this ...
7 years, 4 months ago (2013-08-07 00:00:53 UTC) #2
kinuko
lgtm https://codereview.chromium.org/22436002/diff/1/Source/modules/filesystem/DOMFileSystem.h File Source/modules/filesystem/DOMFileSystem.h (right): https://codereview.chromium.org/22436002/diff/1/Source/modules/filesystem/DOMFileSystem.h#newcode89 Source/modules/filesystem/DOMFileSystem.h:89: class DispatchCallbackTaskBase : public ScriptExecutionContext::Task { nit: having ...
7 years, 4 months ago (2013-08-07 10:16:08 UTC) #3
do-not-use
https://codereview.chromium.org/22436002/diff/1/Source/modules/filesystem/DOMFileSystem.h File Source/modules/filesystem/DOMFileSystem.h (right): https://codereview.chromium.org/22436002/diff/1/Source/modules/filesystem/DOMFileSystem.h#newcode89 Source/modules/filesystem/DOMFileSystem.h:89: class DispatchCallbackTaskBase : public ScriptExecutionContext::Task { On 2013/08/07 10:16:08, ...
7 years, 4 months ago (2013-08-07 10:28:45 UTC) #4
do-not-use
On 2013/08/07 10:16:08, kinuko wrote: > lgtm > > https://codereview.chromium.org/22436002/diff/1/Source/modules/filesystem/DOMFileSystem.h > File Source/modules/filesystem/DOMFileSystem.h (right): > ...
7 years, 4 months ago (2013-08-07 10:41:42 UTC) #5
kinuko
patch set lgtm (still)
7 years, 4 months ago (2013-08-07 11:12:21 UTC) #6
arv (Not doing code reviews)
LGTM https://codereview.chromium.org/22436002/diff/9001/LayoutTests/fast/filesystem/resources/op-tests-helper.js File LayoutTests/fast/filesystem/resources/op-tests-helper.js (right): https://codereview.chromium.org/22436002/diff/9001/LayoutTests/fast/filesystem/resources/op-tests-helper.js#newcode210 LayoutTests/fast/filesystem/resources/op-tests-helper.js:210: this.readEntries = this.readEntries.concat(entries); concat is evil. How about: ...
7 years, 4 months ago (2013-08-07 14:24:43 UTC) #7
apavlov
https://codereview.chromium.org/22436002/diff/9001/LayoutTests/fast/filesystem/resources/op-tests-helper.js File LayoutTests/fast/filesystem/resources/op-tests-helper.js (right): https://codereview.chromium.org/22436002/diff/9001/LayoutTests/fast/filesystem/resources/op-tests-helper.js#newcode210 LayoutTests/fast/filesystem/resources/op-tests-helper.js:210: this.readEntries = this.readEntries.concat(entries); On 2013/08/07 14:24:43, arv wrote: > ...
7 years, 4 months ago (2013-08-07 14:29:27 UTC) #8
arv (Not doing code reviews)
On 2013/08/07 14:29:27, apavlov wrote: > https://codereview.chromium.org/22436002/diff/9001/LayoutTests/fast/filesystem/resources/op-tests-helper.js > File LayoutTests/fast/filesystem/resources/op-tests-helper.js (right): > > https://codereview.chromium.org/22436002/diff/9001/LayoutTests/fast/filesystem/resources/op-tests-helper.js#newcode210 > ...
7 years, 4 months ago (2013-08-07 15:10:07 UTC) #9
apavlov
On 2013/08/07 15:10:07, arv wrote: > On 2013/08/07 14:29:27, apavlov wrote: > > > https://codereview.chromium.org/22436002/diff/9001/LayoutTests/fast/filesystem/resources/op-tests-helper.js ...
7 years, 4 months ago (2013-08-07 15:15:09 UTC) #10
do-not-use
https://codereview.chromium.org/22436002/diff/9001/LayoutTests/fast/filesystem/resources/op-tests-helper.js File LayoutTests/fast/filesystem/resources/op-tests-helper.js (right): https://codereview.chromium.org/22436002/diff/9001/LayoutTests/fast/filesystem/resources/op-tests-helper.js#newcode210 LayoutTests/fast/filesystem/resources/op-tests-helper.js:210: this.readEntries = this.readEntries.concat(entries); On 2013/08/07 14:24:43, arv wrote: > ...
7 years, 4 months ago (2013-08-07 18:12:28 UTC) #11
do-not-use
On 2013/08/07 18:12:28, Christophe Dumez wrote: > https://codereview.chromium.org/22436002/diff/9001/LayoutTests/fast/filesystem/resources/op-tests-helper.js > File LayoutTests/fast/filesystem/resources/op-tests-helper.js (right): > > https://codereview.chromium.org/22436002/diff/9001/LayoutTests/fast/filesystem/resources/op-tests-helper.js#newcode210 ...
7 years, 4 months ago (2013-08-07 18:22:09 UTC) #12
arv (Not doing code reviews)
concat is broken for non array instances (and it creates a new array but that ...
7 years, 4 months ago (2013-08-07 18:32:41 UTC) #13
tkent
API change LGTM
7 years, 4 months ago (2013-08-07 21:26:45 UTC) #14
do-not-use
Committed patchset #4 manually as r155749 (presubmit successful).
7 years, 4 months ago (2013-08-08 07:55:01 UTC) #15
f(malita)
On 2013/08/08 07:55:01, Christophe Dumez wrote: > Committed patchset #4 manually as r155749 (presubmit successful). ...
7 years, 4 months ago (2013-08-08 14:42:39 UTC) #16
kinuko
On 2013/08/08 14:42:39, Florin Malita wrote: > On 2013/08/08 07:55:01, Christophe Dumez wrote: > > ...
7 years, 4 months ago (2013-08-08 14:44:52 UTC) #17
do-not-use
7 years, 4 months ago (2013-08-08 14:49:28 UTC) #18
Message was sent while issue was closed.
On 2013/08/08 14:44:52, kinuko wrote:
> On 2013/08/08 14:42:39, Florin Malita wrote:
> > On 2013/08/08 07:55:01, Christophe Dumez wrote:
> > > Committed patchset #4 manually as r155749 (presubmit successful).
> > 
> > This broke browser_tests/GetFileStatuses, PTAL:
> > 
> >
>
http://build.chromium.org/p/chromium.webkit/builders/Linux%252520Tests/builds...
> > 
> > [25000:25000:0808/071619:2779187310:INFO:CONSOLE(113)] "Uncaught Error:
> > Invocation of form syncFileSystem.getFileStatuses(array, function) doesn't
> match
> > definition syncFileSystem.getFileStatuses(object fileEntries, function
> > callback)", source: schemaUtils (113)
> 
> I think we can/should fix this in chrome side.  Can we disable the test for
now
> until I fix it?  I can make a patch soonish (but tomorrow in our time, it's
mid
> night here)

I'm giving it a shot now since it is not too late yet in my timezone. I'm not
very familiar with chrome tests though so we'll see :)

Powered by Google App Engine
This is Rietveld 408576698