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

Issue 2580303002: mediaview: Mount ARC documents provider file system volumes. (Closed)

Created:
4 years ago by Shuhei Takahashi
Modified:
3 years, 11 months ago
CC:
chromium-reviews, elijahtaylor+arcwatch_chromium.org, extensions-reviews_chromium.org, yamaguchi+watch_chromium.org, yusukes+watch_chromium.org, tzik, vitalyp+closure_chromium.org, hidehiko+watch_chromium.org, oka+watch_chromium.org, nhiroki, rginda+watch_chromium.org, lhchavez+watch_chromium.org, jlklein+watch-closure_chromium.org, oshima+watch_chromium.org, fukino+watch_chromium.org, chromium-apps-reviews_chromium.org, kinuko+fileapi, davemoore+watch_chromium.org, dbeam+watch-closure_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

mediaview: Mount ARC documents provider file system volumes. New media view volumes are added to chromeos::VolumeManager so that they are available to Files.app. UI patches are coming later, so at this point it looks like unusable unknown volumes appear in Files.app. To hide them from users for now, the feature is guarded with base::FeatureList. Once UI is ready I will make them enabled by default. BUG=chromium:671511 TEST=New (unusable) volumes are shown with --enable-features=ArcMediaView TEST=Media views work with local pending UI patches Review-Url: https://codereview.chromium.org/2580303002 Cr-Commit-Position: refs/heads/master@{#443205} Committed: https://chromium.googlesource.com/chromium/src/+/4b8fa62ab223d4db0ea5d1a8359cbaeba3d757a6

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : Rebased. #

Patch Set 8 : Rebased. #

Total comments: 1

Patch Set 9 : Add a getter of ArcFileSystemService to ArcServiceManager so that VolumeManager can subscribe to AF… #

Total comments: 16

Patch Set 10 : Rebased to ToT. #

Patch Set 11 : Addressed lhchavez's comments. #

Patch Set 12 : Handle OnFileSystemsClosed events. #

Total comments: 3

Patch Set 13 : Escape path components. #

Patch Set 14 : Escape path components. #

Patch Set 15 : Added comments. #

Patch Set 16 : Rebased to tot. #

Patch Set 17 : Use the generic service getter. #

Total comments: 2

Patch Set 18 : Fix a bug pointed out by hidehiko@. #

Total comments: 2

Patch Set 19 : Consistently use GetGlobalService(). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+978 lines, -269 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +21 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +41 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +62 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/arc/fileapi/arc_file_system_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +19 lines, -1 line 0 comments Download
M chrome/browser/chromeos/arc/fileapi/arc_file_system_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +27 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/fileapi/arc_media_view_util.h View 1 2 4 5 6 1 chunk +32 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/arc/fileapi/arc_media_view_util.cc View 1 2 3 4 5 6 1 chunk +29 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_manager/private_api_util.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager.h View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_manager/volume_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 8 chunks +74 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/fileapi/file_system_backend.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +24 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/file_manager_private.idl View 1 chunk +1 line, -1 line 0 comments Download
M components/arc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
A components/arc/file_system/arc_file_system_observer.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +23 lines, -0 lines 0 comments Download
M third_party/closure_compiler/externs/file_manager_private.js View 1 2 10 chunks +610 lines, -260 lines 0 comments Download

Messages

Total messages: 77 (54 generated)
Shuhei Takahashi
lhchavez: PTAL following files: - components/arc/... - chrome/browser/chromeos/arc/... mtomasz: PTAL following files: - chrome/browser/chromeos/extensions/file_manager/private_api_util.cc - ...
3 years, 11 months ago (2017-01-06 09:52:29 UTC) #18
michaelpg
third_party RS LGTM
3 years, 11 months ago (2017-01-09 18:40:23 UTC) #21
Luis Héctor Chávez
oops, didn't see this in my review queue since the wrong lhchavez was added (i'll ...
3 years, 11 months ago (2017-01-10 05:49:04 UTC) #25
Luis Héctor Chávez
On 2017/01/10 05:49:04, Luis Héctor Chávez wrote: > oops, didn't see this in my review ...
3 years, 11 months ago (2017-01-10 05:52:40 UTC) #26
Shuhei Takahashi
On 2017/01/10 05:52:40, Luis Héctor Chávez wrote: > On 2017/01/10 05:49:04, Luis Héctor Chávez wrote: ...
3 years, 11 months ago (2017-01-10 14:13:33 UTC) #31
Luis Héctor Chávez
On 2017/01/10 14:13:33, Shuhei Takahashi wrote: > On 2017/01/10 05:52:40, Luis Héctor Chávez wrote: > ...
3 years, 11 months ago (2017-01-10 18:51:25 UTC) #34
Luis Héctor Chávez
https://codereview.chromium.org/2580303002/diff/160001/chrome/browser/chromeos/file_manager/volume_manager.cc File chrome/browser/chromeos/file_manager/volume_manager.cc (right): https://codereview.chromium.org/2580303002/diff/160001/chrome/browser/chromeos/file_manager/volume_manager.cc#newcode751 chrome/browser/chromeos/file_manager/volume_manager.cc:751: void VolumeManager::OnArcShutdown() { Unfortunately this was reverted :( https://codereview.chromium.org/2580303002/diff/160001/chrome/browser/chromeos/file_manager/volume_manager.cc#newcode756 ...
3 years, 11 months ago (2017-01-10 18:51:35 UTC) #35
mtomasz
https://codereview.chromium.org/2580303002/diff/160001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc File chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc (right): https://codereview.chromium.org/2580303002/diff/160001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc#newcode22 chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc:22: base::FilePath GetDocumentsProviderMountPath( Is this going to be reused for ...
3 years, 11 months ago (2017-01-11 09:35:22 UTC) #36
Shuhei Takahashi
PTAL I'll address mtomasz's comments tomorrow. https://codereview.chromium.org/2580303002/diff/160001/chrome/browser/chromeos/file_manager/volume_manager.cc File chrome/browser/chromeos/file_manager/volume_manager.cc (right): https://codereview.chromium.org/2580303002/diff/160001/chrome/browser/chromeos/file_manager/volume_manager.cc#newcode751 chrome/browser/chromeos/file_manager/volume_manager.cc:751: void VolumeManager::OnArcShutdown() { ...
3 years, 11 months ago (2017-01-11 15:20:43 UTC) #43
Luis Héctor Chávez
lgtm https://codereview.chromium.org/2580303002/diff/220001/chrome/browser/chromeos/file_manager/volume_manager.cc File chrome/browser/chromeos/file_manager/volume_manager.cc (right): https://codereview.chromium.org/2580303002/diff/220001/chrome/browser/chromeos/file_manager/volume_manager.cc#newcode435 chrome/browser/chromeos/file_manager/volume_manager.cc:435: arc::ArcServiceManager::Get()->file_system_service()->RemoveObserver(this); Should you call OnFileSystemsClosed() here?
3 years, 11 months ago (2017-01-11 16:48:45 UTC) #46
Luis Héctor Chávez
https://codereview.chromium.org/2580303002/diff/220001/components/arc/arc_service_manager.h File components/arc/arc_service_manager.h (right): https://codereview.chromium.org/2580303002/diff/220001/components/arc/arc_service_manager.h#newcode84 components/arc/arc_service_manager.h:84: void set_file_system_service(ArcFileSystemService* file_system_service) { FYI the support for the ...
3 years, 11 months ago (2017-01-11 17:10:45 UTC) #47
Shuhei Takahashi
mtomasz: PTAL https://codereview.chromium.org/2580303002/diff/160001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc File chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc (right): https://codereview.chromium.org/2580303002/diff/160001/chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc#newcode22 chrome/browser/chromeos/arc/fileapi/arc_documents_provider_util.cc:22: base::FilePath GetDocumentsProviderMountPath( On 2017/01/11 09:35:22, mtomasz (OOO ...
3 years, 11 months ago (2017-01-12 08:20:28 UTC) #54
mtomasz
lgtm!
3 years, 11 months ago (2017-01-12 08:39:20 UTC) #57
Shuhei Takahashi
Thanks for reviewing! https://codereview.chromium.org/2580303002/diff/220001/components/arc/arc_service_manager.h File components/arc/arc_service_manager.h (right): https://codereview.chromium.org/2580303002/diff/220001/components/arc/arc_service_manager.h#newcode84 components/arc/arc_service_manager.h:84: void set_file_system_service(ArcFileSystemService* file_system_service) { On 2017/01/11 ...
3 years, 11 months ago (2017-01-12 08:52:13 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2580303002/320001
3 years, 11 months ago (2017-01-12 08:52:42 UTC) #61
hidehiko
FYI. https://codereview.chromium.org/2580303002/diff/320001/chrome/browser/chromeos/file_manager/volume_manager.cc File chrome/browser/chromeos/file_manager/volume_manager.cc (right): https://codereview.chromium.org/2580303002/diff/320001/chrome/browser/chromeos/file_manager/volume_manager.cc#newcode436 chrome/browser/chromeos/file_manager/volume_manager.cc:436: arc::ArcServiceManager::Get()->GetService<arc::ArcFileSystemService>() ArcServiceManager is destroyed before KeyedService. So, you'd ...
3 years, 11 months ago (2017-01-12 09:00:46 UTC) #64
Shuhei Takahashi
hidehiko, thanks for catching it! Could you please take a look if the fix is ...
3 years, 11 months ago (2017-01-12 09:29:00 UTC) #65
hidehiko
LGTM with one minor comment. Thank you for quick fix! https://codereview.chromium.org/2580303002/diff/340001/chrome/browser/chromeos/file_manager/volume_manager.cc File chrome/browser/chromeos/file_manager/volume_manager.cc (right): https://codereview.chromium.org/2580303002/diff/340001/chrome/browser/chromeos/file_manager/volume_manager.cc#newcode414 ...
3 years, 11 months ago (2017-01-12 09:31:34 UTC) #68
Shuhei Takahashi
Thanks for taking a look, hidehiko. https://codereview.chromium.org/2580303002/diff/340001/chrome/browser/chromeos/file_manager/volume_manager.cc File chrome/browser/chromeos/file_manager/volume_manager.cc (right): https://codereview.chromium.org/2580303002/diff/340001/chrome/browser/chromeos/file_manager/volume_manager.cc#newcode414 chrome/browser/chromeos/file_manager/volume_manager.cc:414: ->GetService<arc::ArcFileSystemService>() On 2017/01/12 ...
3 years, 11 months ago (2017-01-12 09:34:30 UTC) #69
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2580303002/360001
3 years, 11 months ago (2017-01-12 09:35:13 UTC) #72
commit-bot: I haz the power
Committed patchset #19 (id:360001) as https://chromium.googlesource.com/chromium/src/+/4b8fa62ab223d4db0ea5d1a8359cbaeba3d757a6
3 years, 11 months ago (2017-01-12 10:58:11 UTC) #75
fukino
On 2017/01/12 10:58:11, commit-bot: I haz the power wrote: > Committed patchset #19 (id:360001) as ...
3 years, 11 months ago (2017-01-12 11:31:30 UTC) #76
Shuhei Takahashi
3 years, 11 months ago (2017-01-12 12:46:14 UTC) #77
Message was sent while issue was closed.
FYI, the fix by Fukino-san is:
https://codereview.chromium.org/2625233004/

On 2017/01/12 11:31:30, fukino wrote:
> On 2017/01/12 10:58:11, commit-bot: I haz the power wrote:
> > Committed patchset #19 (id:360001) as
> >
>
https://chromium.googlesource.com/chromium/src/+/4b8fa62ab223d4db0ea5d1a8359c...
> 
> It seems the change on file_manager_private.js broke the closure compilation.
> I'll fix it.

Sorry for breakage and thanks for the fix.

Powered by Google App Engine
This is Rietveld 408576698