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

Issue 366263002: [fsp] Add support for creating directories. (Closed)

Created:
6 years, 5 months ago by mtomasz
Modified:
6 years, 5 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, tzik, nhiroki, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

[fsp] Add support for creating directories. This is the first R/W operation. The new event in IDL has [nodoc], since we don't want to show it on developer.chrome.com before most of the R/W features are done. TEST=unit_tests, browser_tests: *FileSystemProvider*CreateDirectory* BUG=391362 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282554

Patch Set 1 #

Patch Set 2 : Rebased. #

Total comments: 6

Patch Set 3 : Addressed comments. #

Patch Set 4 : Updated tests. #

Total comments: 8

Patch Set 5 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+436 lines, -178 lines) Patch
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_apitest.cc View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/provider_async_file_util.cc View 2 chunks +32 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/provider_async_file_util_unittest.cc View 1 2 3 4 20 chunks +49 lines, -48 lines 0 comments Download
A + chrome/browser/chromeos/file_system_provider/operations/create_directory.h View 1 2 3 4 3 chunks +19 lines, -15 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/operations/create_directory.cc View 1 chunk +59 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/file_system_provider/operations/create_directory_unittest.cc View 1 2 3 4 3 chunks +67 lines, -47 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.h View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.cc View 1 2 3 4 2 chunks +19 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/file_system_provider.idl View 1 2 3 4 2 chunks +18 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js View 1 2 4 chunks +29 lines, -45 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system_provider/create_directory/manifest.json View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/file_system_provider/create_directory/test.js View 1 2 3 1 chunk +100 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/evil/test.js View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/mime_type/test.js View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/read_directory/test.js View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/read_file/test.js View 1 2 3 4 1 chunk +0 lines, -5 lines 0 comments Download

Messages

Total messages: 34 (0 generated)
mtomasz
@kinaba: PTAL at C++. @hirono: PTAL at JS. @benwells: PTAL at IDL. Thanks.
6 years, 5 months ago (2014-07-07 00:44:44 UTC) #1
hirono
lgtm with nits. https://codereview.chromium.org/366263002/diff/20001/chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js File chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js (right): https://codereview.chromium.org/366263002/diff/20001/chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js#newcode47 chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js:47: * @param {function(Array.<*>)} Closure to be ...
6 years, 5 months ago (2014-07-07 03:00:52 UTC) #2
kinaba
lgtm https://codereview.chromium.org/366263002/diff/20001/chrome/browser/chromeos/file_system_provider/operations/create_directory.h File chrome/browser/chromeos/file_system_provider/operations/create_directory.h (right): https://codereview.chromium.org/366263002/diff/20001/chrome/browser/chromeos/file_system_provider/operations/create_directory.h#newcode28 chrome/browser/chromeos/file_system_provider/operations/create_directory.h:28: // Created a directory. If |recursive| is set ...
6 years, 5 months ago (2014-07-07 05:24:08 UTC) #3
mtomasz
https://codereview.chromium.org/366263002/diff/20001/chrome/browser/chromeos/file_system_provider/operations/create_directory.h File chrome/browser/chromeos/file_system_provider/operations/create_directory.h (right): https://codereview.chromium.org/366263002/diff/20001/chrome/browser/chromeos/file_system_provider/operations/create_directory.h#newcode28 chrome/browser/chromeos/file_system_provider/operations/create_directory.h:28: // Created a directory. If |recursive| is set to ...
6 years, 5 months ago (2014-07-07 05:53:55 UTC) #4
mtomasz
On 2014/07/07 05:53:55, mtomasz wrote: > https://codereview.chromium.org/366263002/diff/20001/chrome/browser/chromeos/file_system_provider/operations/create_directory.h > File chrome/browser/chromeos/file_system_provider/operations/create_directory.h > (right): > > https://codereview.chromium.org/366263002/diff/20001/chrome/browser/chromeos/file_system_provider/operations/create_directory.h#newcode28 ...
6 years, 5 months ago (2014-07-08 02:15:45 UTC) #5
not at google - send to devlin
https://codereview.chromium.org/366263002/diff/60001/chrome/common/extensions/api/file_system_provider.idl File chrome/common/extensions/api/file_system_provider.idl (right): https://codereview.chromium.org/366263002/diff/60001/chrome/common/extensions/api/file_system_provider.idl#newcode233 chrome/common/extensions/api/file_system_provider.idl:233: // already exists. If <code>recursive</code> is true, then all ...
6 years, 5 months ago (2014-07-08 16:29:43 UTC) #6
mtomasz
https://codereview.chromium.org/366263002/diff/60001/chrome/common/extensions/api/file_system_provider.idl File chrome/common/extensions/api/file_system_provider.idl (right): https://codereview.chromium.org/366263002/diff/60001/chrome/common/extensions/api/file_system_provider.idl#newcode233 chrome/common/extensions/api/file_system_provider.idl:233: // already exists. If <code>recursive</code> is true, then all ...
6 years, 5 months ago (2014-07-09 02:08:30 UTC) #7
not at google - send to devlin
https://codereview.chromium.org/366263002/diff/60001/chrome/common/extensions/api/file_system_provider.idl File chrome/common/extensions/api/file_system_provider.idl (right): https://codereview.chromium.org/366263002/diff/60001/chrome/common/extensions/api/file_system_provider.idl#newcode235 chrome/common/extensions/api/file_system_provider.idl:235: [maxListeners=1, nodoc] static void onCreateDirectoryRequested( On 2014/07/09 02:08:30, mtomasz ...
6 years, 5 months ago (2014-07-09 02:34:40 UTC) #8
not at google - send to devlin
https://codereview.chromium.org/366263002/diff/60001/chrome/common/extensions/api/file_system_provider.idl File chrome/common/extensions/api/file_system_provider.idl (right): https://codereview.chromium.org/366263002/diff/60001/chrome/common/extensions/api/file_system_provider.idl#newcode235 chrome/common/extensions/api/file_system_provider.idl:235: [maxListeners=1, nodoc] static void onCreateDirectoryRequested( On 2014/07/09 02:34:39, kalman ...
6 years, 5 months ago (2014-07-09 02:39:10 UTC) #9
mtomasz
https://codereview.chromium.org/366263002/diff/60001/chrome/common/extensions/api/file_system_provider.idl File chrome/common/extensions/api/file_system_provider.idl (right): https://codereview.chromium.org/366263002/diff/60001/chrome/common/extensions/api/file_system_provider.idl#newcode235 chrome/common/extensions/api/file_system_provider.idl:235: [maxListeners=1, nodoc] static void onCreateDirectoryRequested( On 2014/07/09 02:39:10, kalman ...
6 years, 5 months ago (2014-07-09 04:03:11 UTC) #10
not at google - send to devlin
lgtm https://codereview.chromium.org/366263002/diff/60001/chrome/common/extensions/api/file_system_provider.idl File chrome/common/extensions/api/file_system_provider.idl (right): https://codereview.chromium.org/366263002/diff/60001/chrome/common/extensions/api/file_system_provider.idl#newcode235 chrome/common/extensions/api/file_system_provider.idl:235: [maxListeners=1, nodoc] static void onCreateDirectoryRequested( On 2014/07/09 04:03:11, ...
6 years, 5 months ago (2014-07-09 13:28:58 UTC) #11
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-10 02:23:08 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/366263002/60001
6 years, 5 months ago (2014-07-10 02:24:30 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg on tryserver.chromium ...
6 years, 5 months ago (2014-07-10 02:29:09 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-10 02:32:25 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/27336)
6 years, 5 months ago (2014-07-10 02:32:26 UTC) #16
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-10 05:03:29 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/366263002/60001
6 years, 5 months ago (2014-07-10 05:04:16 UTC) #18
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg on tryserver.chromium ...
6 years, 5 months ago (2014-07-10 05:08:30 UTC) #19
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-10 05:10:39 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/27361)
6 years, 5 months ago (2014-07-10 05:10:40 UTC) #21
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-10 07:02:39 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/366263002/60001
6 years, 5 months ago (2014-07-10 07:04:19 UTC) #23
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg on tryserver.chromium ...
6 years, 5 months ago (2014-07-10 07:10:07 UTC) #24
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-10 07:12:25 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/27374)
6 years, 5 months ago (2014-07-10 07:12:26 UTC) #26
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-10 08:43:56 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/366263002/60001
6 years, 5 months ago (2014-07-10 08:44:22 UTC) #28
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg on tryserver.chromium ...
6 years, 5 months ago (2014-07-10 08:47:59 UTC) #29
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-10 08:50:00 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/ios_rel_device_ninja/builds/27385)
6 years, 5 months ago (2014-07-10 08:50:01 UTC) #31
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-11 00:42:26 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/366263002/80001
6 years, 5 months ago (2014-07-11 00:43:46 UTC) #33
commit-bot: I haz the power
6 years, 5 months ago (2014-07-11 05:07:07 UTC) #34
Message was sent while issue was closed.
Change committed as 282554

Powered by Google App Engine
This is Rietveld 408576698