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

Issue 210803003: [fsp] Decouple file_service_provider::Service. (Closed)

Created:
6 years, 9 months ago by mtomasz
Modified:
6 years, 8 months ago
Reviewers:
hashimoto
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, yoshiki+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

[fsp] Decouple file_service_provider::Service. This patch splits Service into thinner Service and ProvidedFileSystem. Also now, provided file system information instances are renamed to ProvidedFileSystemInfo. Such separation makes it easy to test provided file systems independently, from the service. Also, after the introduced interface will allow to create a FakeProvidedFileSystem, which will be used to test upcoming AsyncFileUtil without need of using an extension. TEST=New unit_tests:*FileSystemProviderProvidedFileSystemTest* and previous: *FileSystemProvider* (unit_tests + browser_tests). BUG=248427 R=hashimoto@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264106

Patch Set 1 #

Total comments: 32

Patch Set 2 : Rebased. #

Patch Set 3 : Addressed comments. #

Patch Set 4 : Addressed more comments. #

Total comments: 12

Patch Set 5 : Addressed comments. #

Patch Set 6 : Addressed comments. #

Total comments: 3

Patch Set 7 : Addressed comments + rebased. #

Total comments: 12

Patch Set 8 : Addressed comments. #

Patch Set 9 : Rebased. #

Patch Set 10 : Fixed tests. #

Total comments: 35

Patch Set 11 : Addressed comments. #

Patch Set 12 : Rebased. #

Total comments: 6

Patch Set 13 : Fixed. #

Total comments: 6

Patch Set 14 : Addressed comments. #

Total comments: 8

Patch Set 15 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+875 lines, -362 lines) Patch
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.h View 1 2 3 4 5 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +11 lines, -14 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager.h View 1 2 3 4 5 6 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager.cc View 1 2 3 4 5 6 6 chunks +18 lines, -15 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +9 lines, -6 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +50 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +45 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/mount_path_util.h View 1 2 3 4 5 6 7 1 chunk +29 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/mount_path_util.cc View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/mount_path_util_unittest.cc View 1 2 3 4 5 6 7 1 chunk +48 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/observer.h View 1 2 3 4 5 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +22 lines, -25 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/provided_file_system.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +61 lines, -9 lines 0 comments Download
A + chrome/browser/chromeos/file_system_provider/provided_file_system_info.h View 7 3 chunks +10 lines, -10 lines 0 comments Download
A + chrome/browser/chromeos/file_system_provider/provided_file_system_info.cc View 7 1 chunk +7 lines, -6 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/provided_file_system_interface.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +38 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/file_system_provider/provided_file_system_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +183 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager.h View 1 2 3 4 5 6 4 chunks +19 lines, -11 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +22 lines, -16 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/request_manager_unittest.cc View 1 2 3 4 5 20 chunks +42 lines, -48 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +44 lines, -29 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +97 lines, -121 lines 0 comments Download
M chrome/browser/chromeos/file_system_provider/service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 9 chunks +55 lines, -39 lines 0 comments Download
M chrome/chrome_browser_chromeos.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -3 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
mtomasz
This CL depends on: 194693002.
6 years, 9 months ago (2014-03-25 08:54:21 UTC) #1
mtomasz
@hashimoto: PTAL. If you have any questions, let me know. This change is almost entirely ...
6 years, 9 months ago (2014-03-25 08:56:32 UTC) #2
hashimoto
Please rebase onto the updated patch set https://codereview.chromium.org/210803003/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/210803003/diff/1/chrome/browser/chromeos/file_system_provider/provided_file_system.cc#newcode28 chrome/browser/chromeos/file_system_provider/provided_file_system.cc:28: // since ...
6 years, 9 months ago (2014-03-26 03:03:00 UTC) #3
mtomasz
https://codereview.chromium.org/210803003/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/210803003/diff/1/chrome/browser/chromeos/file_system_provider/provided_file_system.cc#newcode28 chrome/browser/chromeos/file_system_provider/provided_file_system.cc:28: // since unmount reqiest does not provide arguments. On ...
6 years, 9 months ago (2014-03-26 05:45:13 UTC) #4
hashimoto
lgtm https://codereview.chromium.org/210803003/diff/1/chrome/browser/chromeos/file_system_provider/request_manager.h File chrome/browser/chromeos/file_system_provider/request_manager.h (right): https://codereview.chromium.org/210803003/diff/1/chrome/browser/chromeos/file_system_provider/request_manager.h#newcode61 chrome/browser/chromeos/file_system_provider/request_manager.h:61: const ProvidedFileSystemInfo& file_system_info, On 2014/03/26 05:45:13, mtomasz OOO ...
6 years, 9 months ago (2014-03-26 06:53:03 UTC) #5
mtomasz
https://codereview.chromium.org/210803003/diff/130001/chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc File chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc (right): https://codereview.chromium.org/210803003/diff/130001/chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc#newcode174 chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc:174: SendResponse(true); On 2014/03/26 06:53:04, hashimoto wrote: > nit: Just ...
6 years, 9 months ago (2014-03-26 08:47:31 UTC) #6
hashimoto
https://codereview.chromium.org/210803003/diff/130001/chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc File chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc (right): https://codereview.chromium.org/210803003/diff/130001/chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc#newcode174 chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc:174: SendResponse(true); On 2014/03/26 08:47:31, mtomasz OOO until 21.03 wrote: ...
6 years, 9 months ago (2014-03-26 09:04:26 UTC) #7
mtomasz
https://codereview.chromium.org/210803003/diff/130001/chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc File chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc (right): https://codereview.chromium.org/210803003/diff/130001/chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc#newcode174 chrome/browser/chromeos/extensions/file_system_provider/file_system_provider_api.cc:174: SendResponse(true); On 2014/03/26 09:04:26, hashimoto wrote: > On 2014/03/26 ...
6 years, 9 months ago (2014-03-26 10:53:57 UTC) #8
hashimoto
Is the current patch set based on the newest patch set of https://codereview.chromium.org/194693002/? https://codereview.chromium.org/210803003/diff/280019/chrome/browser/chromeos/file_system_provider/service_unittest.cc File ...
6 years, 9 months ago (2014-03-27 09:21:17 UTC) #9
mtomasz
https://codereview.chromium.org/210803003/diff/280019/chrome/browser/chromeos/file_system_provider/service_unittest.cc File chrome/browser/chromeos/file_system_provider/service_unittest.cc (right): https://codereview.chromium.org/210803003/diff/280019/chrome/browser/chromeos/file_system_provider/service_unittest.cc#newcode191 chrome/browser/chromeos/file_system_provider/service_unittest.cc:191: "/provided/mbflcebpggnecokmikipoihdbecnjfoj-1-testing_profile-hash", On 2014/03/27 09:21:18, hashimoto wrote: > This EXPECT ...
6 years, 9 months ago (2014-03-28 09:42:56 UTC) #10
mtomasz
https://codereview.chromium.org/210803003/diff/280019/chrome/browser/chromeos/file_system_provider/service_unittest.cc File chrome/browser/chromeos/file_system_provider/service_unittest.cc (right): https://codereview.chromium.org/210803003/diff/280019/chrome/browser/chromeos/file_system_provider/service_unittest.cc#newcode191 chrome/browser/chromeos/file_system_provider/service_unittest.cc:191: "/provided/mbflcebpggnecokmikipoihdbecnjfoj-1-testing_profile-hash", On 2014/03/28 09:42:57, mtomasz wrote: > On 2014/03/27 ...
6 years, 8 months ago (2014-03-31 01:45:47 UTC) #11
mtomasz
@hashimoto: I've moved GetMountPointPath to util.cc and simplified tests. PTAL. Thanks.
6 years, 8 months ago (2014-04-09 00:16:31 UTC) #12
hashimoto
The number of files added by the newest patch set doesn't match the change in ...
6 years, 8 months ago (2014-04-09 06:18:22 UTC) #13
mtomasz
https://codereview.chromium.org/210803003/diff/410001/chrome/browser/chromeos/file_system_provider/service.cc File chrome/browser/chromeos/file_system_provider/service.cc (right): https://codereview.chromium.org/210803003/diff/410001/chrome/browser/chromeos/file_system_provider/service.cc#newcode9 chrome/browser/chromeos/file_system_provider/service.cc:9: #include "base/strings/string_number_conversions.h" On 2014/04/09 06:18:23, hashimoto wrote: > nit: ...
6 years, 8 months ago (2014-04-09 19:51:14 UTC) #14
mtomasz
On 2014/04/09 19:51:14, mtomasz wrote: > https://codereview.chromium.org/210803003/diff/410001/chrome/browser/chromeos/file_system_provider/service.cc > File chrome/browser/chromeos/file_system_provider/service.cc (right): > > https://codereview.chromium.org/210803003/diff/410001/chrome/browser/chromeos/file_system_provider/service.cc#newcode9 > ...
6 years, 8 months ago (2014-04-10 05:20:23 UTC) #15
mtomasz
@hashimoto: I've fixed the tests. PTAL. Thanks.
6 years, 8 months ago (2014-04-10 21:22:55 UTC) #16
hashimoto
When you made a large change to the patch set, could you describe what you ...
6 years, 8 months ago (2014-04-11 06:01:50 UTC) #17
mtomasz
Sorry for the big patch. As I mentioned in https://codereview.chromium.org/210803003/#msg11 I wanted to do further ...
6 years, 8 months ago (2014-04-11 07:11:55 UTC) #18
hashimoto
Did you forget to upload a new patch set?
6 years, 8 months ago (2014-04-11 09:09:03 UTC) #19
mtomasz
https://codereview.chromium.org/210803003/diff/470001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc File chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc (right): https://codereview.chromium.org/210803003/diff/470001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc#newcode44 chrome/browser/chromeos/file_system_provider/fake_provided_file_system.cc:44: // of a profile wide. As a result, this ...
6 years, 8 months ago (2014-04-11 19:54:12 UTC) #20
hashimoto
https://codereview.chromium.org/210803003/diff/470001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h File chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h (right): https://codereview.chromium.org/210803003/diff/470001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h#newcode42 chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h:42: : public ProvidedFileSystemFactoryInterface { On 2014/04/11 07:11:56, mtomasz wrote: ...
6 years, 8 months ago (2014-04-14 10:43:41 UTC) #21
mtomasz
https://codereview.chromium.org/210803003/diff/470001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h File chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h (right): https://codereview.chromium.org/210803003/diff/470001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h#newcode42 chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h:42: : public ProvidedFileSystemFactoryInterface { On 2014/04/14 10:43:42, hashimoto wrote: ...
6 years, 8 months ago (2014-04-15 02:46:40 UTC) #22
hashimoto
https://codereview.chromium.org/210803003/diff/470001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h File chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h (right): https://codereview.chromium.org/210803003/diff/470001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h#newcode42 chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h:42: : public ProvidedFileSystemFactoryInterface { On 2014/04/15 02:46:40, mtomasz wrote: ...
6 years, 8 months ago (2014-04-15 07:22:44 UTC) #23
mtomasz
https://codereview.chromium.org/210803003/diff/470001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h File chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h (right): https://codereview.chromium.org/210803003/diff/470001/chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h#newcode42 chrome/browser/chromeos/file_system_provider/fake_provided_file_system.h:42: : public ProvidedFileSystemFactoryInterface { On 2014/04/15 07:22:45, hashimoto wrote: ...
6 years, 8 months ago (2014-04-15 09:42:11 UTC) #24
hashimoto
lgtm https://codereview.chromium.org/210803003/diff/550001/chrome/browser/chromeos/file_manager/volume_manager_unittest.cc File chrome/browser/chromeos/file_manager/volume_manager_unittest.cc (right): https://codereview.chromium.org/210803003/diff/550001/chrome/browser/chromeos/file_manager/volume_manager_unittest.cc#newcode157 chrome/browser/chromeos/file_manager/volume_manager_unittest.cc:157: chromeos::file_system_provider::FakeProvidedFileSystem::Create)); nit: '&' can be omitted here, but ...
6 years, 8 months ago (2014-04-15 13:42:00 UTC) #25
mtomasz
Thanks for the detailed review! https://codereview.chromium.org/210803003/diff/550001/chrome/browser/chromeos/file_manager/volume_manager_unittest.cc File chrome/browser/chromeos/file_manager/volume_manager_unittest.cc (right): https://codereview.chromium.org/210803003/diff/550001/chrome/browser/chromeos/file_manager/volume_manager_unittest.cc#newcode157 chrome/browser/chromeos/file_manager/volume_manager_unittest.cc:157: chromeos::file_system_provider::FakeProvidedFileSystem::Create)); On 2014/04/15 13:42:00, ...
6 years, 8 months ago (2014-04-16 01:04:03 UTC) #26
mtomasz
The CQ bit was checked by mtomasz@chromium.org
6 years, 8 months ago (2014-04-16 01:04:11 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/210803003/560001
6 years, 8 months ago (2014-04-16 01:05:01 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mtomasz@chromium.org/210803003/560001
6 years, 8 months ago (2014-04-16 01:38:33 UTC) #29
mtomasz
6 years, 8 months ago (2014-04-16 04:03:41 UTC) #30
Message was sent while issue was closed.
Committed patchset #15 manually as r264106 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698