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

Issue 703123003: [fsp] Pass more detailed errors to the providing extension. (Closed)

Created:
6 years, 1 month ago by mtomasz
Modified:
6 years, 1 month ago
Reviewers:
fukino
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
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

[fsp] Pass more detailed errors to the providing extension. Before, many methods were returning a simple bool, which was later converted to a generic SECURITY error code (if false). This patch converts such bools to base::File::Error, so we can convey the specific error code. Note, that base::File::Error is used to pass all error codes within the File System API implementation, even if it's not really related to files. We may want to introduce our own type in the future. TEST=unit_tests, browser_tests: *FileSystemProvider* BUG=248427 Committed: https://crrev.com/4c9bba032dd4eb99cec715caae9225a9c93dde00 Cr-Commit-Position: refs/heads/master@{#303413}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed. #

Patch Set 3 : Fixed a bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+292 lines, -243 lines) Patch
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.h View 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc View 5 chunks +32 lines, -23 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_system_provider/provider_function.cc View 5 chunks +10 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h View 1 chunk +7 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/file_stream_reader_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/file_stream_writer_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/fileapi/provider_async_file_util_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/mount_path_util_unittest.cc View 5 chunks +20 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.h View 2 chunks +10 lines, -8 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.cc View 1 4 chunks +30 lines, -29 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h View 1 chunk +10 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system_unittest.cc View 3 chunks +17 lines, -12 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager.h View 1 chunk +13 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager.cc View 3 chunks +12 lines, -10 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager_unittest.cc View 11 chunks +32 lines, -33 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.h View 1 chunk +8 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.cc View 1 2 11 chunks +20 lines, -21 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service_unittest.cc View 12 chunks +47 lines, -31 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/get_all/test.js View 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/mount/test.js View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/notify/test.js View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system_provider/unmount/test.js View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 13 (5 generated)
mtomasz
@fukino: This is a pretty much mechanical change. PTAL. Thanks.
6 years, 1 month ago (2014-11-06 10:15:33 UTC) #2
fukino
Sorry for being late! lgtm with a small nit. https://codereview.chromium.org/703123003/diff/1/chrome/browser/chromeos/file_system_provider/provided_file_system.cc File chrome/browser/chromeos/file_system_provider/provided_file_system.cc (right): https://codereview.chromium.org/703123003/diff/1/chrome/browser/chromeos/file_system_provider/provided_file_system.cc#newcode625 chrome/browser/chromeos/file_system_provider/provided_file_system.cc:625: ...
6 years, 1 month ago (2014-11-07 10:26:53 UTC) #4
mtomasz
https://codereview.chromium.org/703123003/diff/1/chrome/browser/chromeos/file_system_provider/provided_file_system.cc File chrome/browser/chromeos/file_system_provider/provided_file_system.cc (right): https://codereview.chromium.org/703123003/diff/1/chrome/browser/chromeos/file_system_provider/provided_file_system.cc#newcode625 chrome/browser/chromeos/file_system_provider/provided_file_system.cc:625: // methods so there is no rate. On 2014/11/07 ...
6 years, 1 month ago (2014-11-07 11:20:22 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/703123003/40001
6 years, 1 month ago (2014-11-07 11:20:37 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel/builds/9793)
6 years, 1 month ago (2014-11-07 12:32:32 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/703123003/60001
6 years, 1 month ago (2014-11-10 01:06:26 UTC) #11
commit-bot: I haz the power
Committed patchset #3 (id:60001)
6 years, 1 month ago (2014-11-10 02:02:13 UTC) #12
commit-bot: I haz the power
6 years, 1 month ago (2014-11-10 02:02:58 UTC) #13
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4c9bba032dd4eb99cec715caae9225a9c93dde00
Cr-Commit-Position: refs/heads/master@{#303413}

Powered by Google App Engine
This is Rietveld 408576698