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

Issue 372163006: [fsp] Add an option for mounting in R/W mode. (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, yoshiki+watch_chromium.org, nhiroki, rginda+watch_chromium.org, 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 an option for mounting in R/W mode. Files app fetches information whether a volume is read only or R/W from file_manager::VolumeManager, which used to always have the isReadOnly option set to true for any provided file system. However, since R/W operations are now under development, we should be able to mark a volume as R/W. In order to achieve that, a "writable" option has been added to the File System Provider API mount() call. The argument is by default false, so file systems are by default read only. TEST=unit_test, browser_tests: *FileSystemProvider*Writable* BUG=391362 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=282890

Patch Set 1 #

Patch Set 2 : Rebase + cleaned up. #

Patch Set 3 : Rebased. #

Patch Set 4 : Fixed tests. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+154 lines, -60 lines) Patch
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader_unittest.cc View 1 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/provider_async_file_util_unittest.cc View 1 2 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/mount_path_util_unittest.cc View 1 6 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/close_file_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/create_directory_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/delete_entry_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/get_metadata_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/open_file_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_directory_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/read_file_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/operations/unmount_unittest.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_info.h View 1 3 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_info.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.h View 1 2 chunks +7 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.cc View 1 2 5 chunks +21 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service_unittest.cc View 1 2 3 15 chunks +54 lines, -25 lines 0 comments Download
M chrome/common/extensions/api/file_system_provider.idl View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/mount/test.js View 3 chunks +39 lines, -7 lines 0 comments Download

Messages

Total messages: 37 (0 generated)
mtomasz
@kinaba: PTAL. Thanks.
6 years, 5 months ago (2014-07-09 06:18:58 UTC) #1
kinaba
lgtm
6 years, 5 months ago (2014-07-09 08:55:42 UTC) #2
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-09 09:19:21 UTC) #3
mtomasz
The CQ bit was unchecked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-09 09:19:42 UTC) #4
mtomasz
@kalman: PTAL at IDL. Let me know if you want me to remove that [nodoc].
6 years, 5 months ago (2014-07-09 09:20:30 UTC) #5
not at google - send to devlin
lgtm
6 years, 5 months ago (2014-07-09 13:32:46 UTC) #6
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-09 13:52:35 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/372163006/20001
6 years, 5 months ago (2014-07-09 13:53:33 UTC) #8
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-09 14:09:03 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-09 14:10:39 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/26465)
6 years, 5 months ago (2014-07-09 14:10:40 UTC) #11
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-09 23:15:17 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/372163006/20001
6 years, 5 months ago (2014-07-09 23:17:29 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 5 months ago (2014-07-10 00:25:52 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 00:31:05 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_chromium_gn_compile_rel/builds/21108) android_clang_dbg on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_clang_dbg/builds/159684) android_dbg ...
6 years, 5 months ago (2014-07-10 00:31:07 UTC) #16
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-10 14:14:01 UTC) #17
mtomasz
The CQ bit was unchecked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-10 14:14:03 UTC) #18
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-11 11:04:51 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/372163006/40001
6 years, 5 months ago (2014-07-11 11:06:03 UTC) #20
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-11 12:43:01 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-11 13:50:29 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/46713)
6 years, 5 months ago (2014-07-11 13:50:30 UTC) #23
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-11 15:51:14 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/372163006/40001
6 years, 5 months ago (2014-07-11 15:51:51 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-11 17:04:46 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-11 18:12:43 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/46780)
6 years, 5 months ago (2014-07-11 18:12:44 UTC) #28
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-13 05:55:46 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/372163006/40001
6 years, 5 months ago (2014-07-13 05:56:45 UTC) #30
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_chromeos_rel on tryserver.chromium ...
6 years, 5 months ago (2014-07-13 07:04:20 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 5 months ago (2014-07-13 08:15:12 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chromeos_rel/builds/47085)
6 years, 5 months ago (2014-07-13 08:15:14 UTC) #33
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 5 months ago (2014-07-14 00:50:29 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/372163006/60001
6 years, 5 months ago (2014-07-14 00:50:53 UTC) #35
commit-bot: I haz the power
Change committed as 282890
6 years, 5 months ago (2014-07-14 02:36:20 UTC) #36
falken
6 years, 5 months ago (2014-07-14 03:55:31 UTC) #37
Message was sent while issue was closed.
On 2014/07/14 02:36:20, I haz the power (commit-bot) wrote:
> Change committed as 282890

I think this caused FileSystemProviderApiTest.Mount to fail on Linux ChromiumOS
Tests:
http://build.chromium.org/p/chromium.webkit/builders/Linux%20ChromiumOS%20Tes...

[8391:8391:0713/203712:INFO:CONSOLE(0)] "[FAIL] successfulWritableMount:
uncaught exception: Invalid value for argument 1. Property 'writable':
Unexpected property.
Error
    at extensions::test:96:22
    at Object.exports.handle (extensions::uncaught_exception_handler:15:3)
    at Object.\u003Canonymous> (extensions::test:100:32)
    at Object.handleRequest (extensions::binding:55:27)
    at Object.\u003Canonymous> (extensions::binding:318:32)", source:
chrome-extension://ddammdhioacbehjngdmkjcjbnfginlla/_generated_background_page.html
(0)
[8391:8391:0713/203712:INFO:CONSOLE(119)] "Uncaught chrome.test.failure",
source: extensions::test (119)
[8391:8391:0713/203712:INFO:CONSOLE(0)] "[FAIL] stressMountTest: FAIL (no
message)
Error
    at chrome-extension://ddammdhioacbehjngdmkjcjbnfginlla/test.js:138:27
    at Object.customCallback (extensions::fileSystemProvider:97:11)
    at safeCallbackApply (extensions::sendRequest:22:15)
    at handleResponse (extensions::sendRequest:61:7)", source:
chrome-extension://ddammdhioacbehjngdmkjcjbnfginlla/_generated_background_page.html
(0)
../../chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_apitest.cc:31:
Failure
Value of: RunPlatformAppTestWithFlags("file_system_provider/mount",
kFlagLoadAsComponent)
  Actual: false
Expected: true
Failed 2 of 6 tests

Powered by Google App Engine
This is Rietveld 408576698