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

Issue 389893002: [fsp] Add support for creating files. (Closed)

Created:
6 years, 5 months ago by mtomasz
Modified:
6 years, 5 months ago
Reviewers:
benwells, hirono, kinaba
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 files. This patch adds support for creating files via AsyncFileUtil::EnsureFileExists. Note, that creating files from NaCL is not supported yet. TEST=unit_tests, browser_tests: *FileSystemProvider*EnsureFile*, *FileSystemProvider*CreateFile* BUG=391362 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284873

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+365 lines, -91 lines) Patch
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_apitest.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/provider_async_file_util.cc View 2 chunks +37 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/provider_async_file_util_unittest.cc View 1 21 chunks +27 lines, -29 lines 0 comments Download
A + chrome/browser/chromeos/file_system_provider/operations/create_file.h View 3 chunks +13 lines, -14 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/operations/create_file.cc View 1 chunk +52 lines, -0 lines 0 comments Download
A + chrome/browser/chromeos/file_system_provider/operations/create_file_unittest.cc View 1 4 chunks +46 lines, -45 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.cc View 2 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h View 1 chunk +6 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 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/api/file_system_provider.idl View 1 2 chunks +15 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/file_system_provider_custom_bindings.js View 1 chunk +4 lines, -0 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system_provider/create_file/manifest.json View 1 chunk +2 lines, -2 lines 0 comments Download
A chrome/test/data/extensions/api_test/file_system_provider/create_file/test.js View 1 chunk +121 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
mtomasz
As before, the code is almost identical to other operations. The main difference is that ...
6 years, 5 months ago (2014-07-14 02:33:22 UTC) #1
hirono
https://codereview.chromium.org/389893002/diff/1/chrome/test/data/extensions/api_test/file_system_provider/create_file/test.js File chrome/test/data/extensions/api_test/file_system_provider/create_file/test.js (right): https://codereview.chromium.org/389893002/diff/1/chrome/test/data/extensions/api_test/file_system_provider/create_file/test.js#newcode66 chrome/test/data/extensions/api_test/file_system_provider/create_file/test.js:66: test_util.defaultMetadata['/' + TESTING_FILE.name] = TESTING_FILE; Is it needed?
6 years, 5 months ago (2014-07-14 05:08:35 UTC) #2
kinaba
lgtm
6 years, 5 months ago (2014-07-14 05:14:46 UTC) #3
mtomasz
https://codereview.chromium.org/389893002/diff/1/chrome/test/data/extensions/api_test/file_system_provider/create_file/test.js File chrome/test/data/extensions/api_test/file_system_provider/create_file/test.js (right): https://codereview.chromium.org/389893002/diff/1/chrome/test/data/extensions/api_test/file_system_provider/create_file/test.js#newcode66 chrome/test/data/extensions/api_test/file_system_provider/create_file/test.js:66: test_util.defaultMetadata['/' + TESTING_FILE.name] = TESTING_FILE; On 2014/07/14 05:08:35, hirono ...
6 years, 5 months ago (2014-07-14 06:05:37 UTC) #4
hirono
On 2014/07/14 06:05:37, mtomasz wrote: > https://codereview.chromium.org/389893002/diff/1/chrome/test/data/extensions/api_test/file_system_provider/create_file/test.js > File > chrome/test/data/extensions/api_test/file_system_provider/create_file/test.js > (right): > > ...
6 years, 5 months ago (2014-07-14 06:07:15 UTC) #5
benwells
idl / custom bindings lgtm
6 years, 5 months ago (2014-07-18 04:23:59 UTC) #6
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-23 00:16:36 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/389893002/20001
6 years, 5 months ago (2014-07-23 00:20:23 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 5 months ago (2014-07-23 04:27:30 UTC) #9
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-23 05:49:33 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_gpu_triggered_tests on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/win_gpu_triggered_tests/builds/31224)
6 years, 5 months ago (2014-07-23 05:49:34 UTC) #11
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-23 06:30:34 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/389893002/20001
6 years, 5 months ago (2014-07-23 06:32:07 UTC) #13
commit-bot: I haz the power
6 years, 5 months ago (2014-07-23 06:55:31 UTC) #14
Message was sent while issue was closed.
Change committed as 284873

Powered by Google App Engine
This is Rietveld 408576698