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

Issue 18331017: Support choosing multiple files with fileSystem.chooseEntry. (Closed)

Created:
7 years, 5 months ago by Sam McNally
Modified:
7 years, 4 months ago
Reviewers:
benwells, Matt Giuca
CC:
chromium-reviews, tzik+watch_chromium.org, chromium-apps-reviews_chromium.org, kinuko+watch, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Support choosing multiple files with fileSystem.chooseEntry. This adds acceptMultiple to ChooseEntryOptions, which when set to true, presents the user with a file chooser dialog that allows the selection of multiple files. BUG=159062 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215269

Patch Set 1 : #

Total comments: 17

Patch Set 2 : rebase #

Patch Set 3 : #

Total comments: 16

Patch Set 4 : #

Total comments: 4

Patch Set 5 : #

Total comments: 14

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+448 lines, -150 lines) Patch
M chrome/browser/extensions/api/file_system/file_system_api.h View 1 2 3 4 5 6 3 chunks +31 lines, -22 lines 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_api.cc View 1 2 3 4 5 6 23 chunks +250 lines, -96 lines 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_apitest.cc View 1 2 3 4 5 4 chunks +75 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/file_system.idl View 1 2 3 2 chunks +10 lines, -1 line 0 comments Download
M chrome/renderer/resources/extensions/file_system_custom_bindings.js View 1 2 3 4 5 1 chunk +54 lines, -24 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/open_multiple_existing/background.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/open_multiple_existing/manifest.json View 1 chunk +3 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/open_multiple_existing/test.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/open_multiple_existing/test.js View 1 2 3 1 chunk +5 lines, -3 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/open_multiple_existing/test_util.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/open_multiple_with_suggested_name/background.js View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/open_multiple_with_suggested_name/manifest.json View 1 2 3 1 chunk +3 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/open_multiple_with_suggested_name/test.html View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/open_multiple_with_suggested_name/test.js View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/open_multiple_with_suggested_name/test_util.js View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/open_multiple_writable_existing_with_write/background.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/open_multiple_writable_existing_with_write/manifest.json View 1 chunk +3 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/open_multiple_writable_existing_with_write/test.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/api_test/file_system/open_multiple_writable_existing_with_write/test.js View 1 2 3 1 chunk +16 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/open_multiple_writable_existing_with_write/test_util.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/save_multiple/background.js View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/save_multiple/manifest.json View 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/save_multiple/test.html View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/save_multiple/test.js View 1 chunk +3 lines, -4 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Sam McNally
7 years, 5 months ago (2013-07-04 05:48:11 UTC) #1
Matt Giuca
Some initial comments. I haven't done a full review yet. https://codereview.chromium.org/18331017/diff/39001/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): https://codereview.chromium.org/18331017/diff/39001/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode65 ...
7 years, 5 months ago (2013-07-19 02:28:11 UTC) #2
Sam McNally
https://codereview.chromium.org/18331017/diff/39001/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): https://codereview.chromium.org/18331017/diff/39001/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode65 chrome/browser/extensions/api/file_system/file_system_api.cc:65: const char kWritableFileErrorPrefix[] = "Error opening "; On 2013/07/19 ...
7 years, 5 months ago (2013-07-19 04:22:14 UTC) #3
Matt Giuca
https://codereview.chromium.org/18331017/diff/39001/chrome/common/extensions/api/file_system.idl File chrome/common/extensions/api/file_system.idl (right): https://codereview.chromium.org/18331017/diff/39001/chrome/common/extensions/api/file_system.idl#newcode68 chrome/common/extensions/api/file_system.idl:68: [instanceOf=FileEntry] optional object fileEntry, Is it worth refactoring so ...
7 years, 5 months ago (2013-07-25 08:31:09 UTC) #4
benwells
https://codereview.chromium.org/18331017/diff/39001/chrome/common/extensions/api/file_system.idl File chrome/common/extensions/api/file_system.idl (right): https://codereview.chromium.org/18331017/diff/39001/chrome/common/extensions/api/file_system.idl#newcode68 chrome/common/extensions/api/file_system.idl:68: [instanceOf=FileEntry] optional object fileEntry, On 2013/07/25 08:31:09, Matt Giuca ...
7 years, 5 months ago (2013-07-25 09:08:31 UTC) #5
Matt Giuca
On 2013/07/25 09:08:31, benwells wrote: > https://codereview.chromium.org/18331017/diff/39001/chrome/common/extensions/api/file_system.idl > File chrome/common/extensions/api/file_system.idl (right): > > https://codereview.chromium.org/18331017/diff/39001/chrome/common/extensions/api/file_system.idl#newcode68 > ...
7 years, 5 months ago (2013-07-25 23:37:02 UTC) #6
Sam McNally
https://codereview.chromium.org/18331017/diff/39001/chrome/common/extensions/api/file_system.idl File chrome/common/extensions/api/file_system.idl (right): https://codereview.chromium.org/18331017/diff/39001/chrome/common/extensions/api/file_system.idl#newcode68 chrome/common/extensions/api/file_system.idl:68: [instanceOf=FileEntry] optional object fileEntry, On 2013/07/25 09:08:31, benwells wrote: ...
7 years, 5 months ago (2013-07-26 03:58:03 UTC) #7
Matt Giuca
LGTM with nits. https://codereview.chromium.org/18331017/diff/104001/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): https://codereview.chromium.org/18331017/diff/104001/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode332 chrome/browser/extensions/api/file_system/file_system_api.cc:332: DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); Nit: Remove this DCHECK. There ...
7 years, 4 months ago (2013-08-01 00:02:23 UTC) #8
Matt Giuca
Apologies for the delay in reviewing this.
7 years, 4 months ago (2013-08-01 00:02:47 UTC) #9
Sam McNally
https://codereview.chromium.org/18331017/diff/104001/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): https://codereview.chromium.org/18331017/diff/104001/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode332 chrome/browser/extensions/api/file_system/file_system_api.cc:332: DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); On 2013/08/01 00:02:24, Matt Giuca wrote: > Nit: ...
7 years, 4 months ago (2013-08-01 00:08:38 UTC) #10
benwells
Initial review, I've only looked at non-test code so far. https://codereview.chromium.org/18331017/diff/123001/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): https://codereview.chromium.org/18331017/diff/123001/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode320 ...
7 years, 4 months ago (2013-08-01 07:48:32 UTC) #11
Sam McNally
https://codereview.chromium.org/18331017/diff/123001/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): https://codereview.chromium.org/18331017/diff/123001/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode320 chrome/browser/extensions/api/file_system/file_system_api.cc:320: DCHECK(content::BrowserThread::CurrentlyOn(content::BrowserThread::UI)); On 2013/08/01 07:48:33, benwells wrote: > Can you ...
7 years, 4 months ago (2013-08-02 05:35:31 UTC) #12
benwells
lg with nits so far, still looking at tests https://codereview.chromium.org/18331017/diff/140001/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): https://codereview.chromium.org/18331017/diff/140001/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode319 chrome/browser/extensions/api/file_system/file_system_api.cc:319: ...
7 years, 4 months ago (2013-08-02 07:41:31 UTC) #13
benwells
lgtm. LGTM!
7 years, 4 months ago (2013-08-02 08:05:02 UTC) #14
Sam McNally
https://codereview.chromium.org/18331017/diff/140001/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): https://codereview.chromium.org/18331017/diff/140001/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode319 chrome/browser/extensions/api/file_system/file_system_api.cc:319: void TaskDone() { On 2013/08/02 07:41:31, benwells wrote: > ...
7 years, 4 months ago (2013-08-02 08:17:52 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sammc@chromium.org/18331017/149001
7 years, 4 months ago (2013-08-02 08:21:56 UTC) #16
commit-bot: I haz the power
7 years, 4 months ago (2013-08-02 11:26:02 UTC) #17
Message was sent while issue was closed.
Change committed as 215269

Powered by Google App Engine
This is Rietveld 408576698