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

Issue 10823273: Integrate external mount points to IsolatedContext (Closed)

Created:
8 years, 4 months ago by kinuko
Modified:
8 years, 4 months ago
Reviewers:
kmadhusu, satorux1, zel, tzik
CC:
chromium-reviews, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, oshima+watch_chromium.org, kinuko+watch, stevenjb+watch_chromium.org, satorux1, Lei Zhang, yoshiki, vandebo (ex-Chrome), kmadhusu
Visibility:
Public.

Description

Integrate external mount points to IsolatedContext * To support MTP/Media filesystems in CrOS's FileBrowser * To eventually support external, persistent mount points in sans-CrOS chrome (currently ifdef'ed only for cros since we need http://crbug.com/142289 to do the same in chrome) * To introduce more finer-grained filesystem types * To reduce duplicated code What this patch actually does: - Add external mount point support in IsolatedContext - Introduce new filesystem types, NativeLocal and GData, to represent file systems supported by CrOS - Replace CrOSMountPointProvider's internal mount map with IsolatedContext BUG=139223 TEST=manually tested TEST=existing tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=152559

Patch Set 1 : #

Patch Set 2 : cros test fix #

Total comments: 23

Patch Set 3 : addressed comments #

Patch Set 4 : wording fix #

Total comments: 2

Patch Set 5 : filesystem_id based permission check should be only applied to Isolated filesystems #

Patch Set 6 : remove too strict DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+476 lines, -377 lines) Patch
M chrome/browser/chromeos/extensions/file_browser_private_api.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/chromeos/extensions/file_browser_private_api.cc View 1 2 3 4 9 chunks +23 lines, -75 lines 0 comments Download
M chrome/browser/chromeos/extensions/file_handler_util.cc View 1 2 3 4 chunks +19 lines, -29 lines 0 comments Download
M chrome/browser/chromeos/gdata/drive_task_executor.cc View 1 2 3 2 chunks +4 lines, -6 lines 0 comments Download
M chrome/browser/chromeos/gdata/gdata_file_system_proxy.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/fileapi/fileapi_message_filter.cc View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/chromeos/fileapi/cros_mount_point_provider.h View 1 2 3 4 3 chunks +23 lines, -43 lines 0 comments Download
M webkit/chromeos/fileapi/cros_mount_point_provider.cc View 1 2 3 4 5 8 chunks +87 lines, -103 lines 0 comments Download
M webkit/fileapi/file_system_context.cc View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M webkit/fileapi/file_system_mount_point_provider.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M webkit/fileapi/file_system_types.h View 1 2 3 4 2 chunks +25 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_url.h View 1 2 3 4 3 chunks +47 lines, -3 lines 0 comments Download
M webkit/fileapi/file_system_url.cc View 1 2 3 4 3 chunks +12 lines, -6 lines 0 comments Download
M webkit/fileapi/file_system_util.cc View 1 2 1 chunk +5 lines, -2 lines 0 comments Download
M webkit/fileapi/isolated_context.h View 1 2 5 chunks +73 lines, -57 lines 0 comments Download
M webkit/fileapi/isolated_context.cc View 1 2 3 4 6 chunks +139 lines, -35 lines 0 comments Download
M webkit/fileapi/isolated_mount_point_provider.cc View 1 2 3 chunks +3 lines, -7 lines 0 comments Download
M webkit/fileapi/local_file_system_operation.cc View 3 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
kinuko
This is the first cut for supporting MTP filesystem in CrosMountPointProvider. This does not do ...
8 years, 4 months ago (2012-08-14 08:10:16 UTC) #1
kmadhusu
Drive-by comments. http://codereview.chromium.org/10823273/diff/1036/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10823273/diff/1036/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode508 chrome/browser/chromeos/extensions/file_browser_private_api.cc:508: if (!fileapi::IsCrosManagedFileSystemType(url.type())) nit: if (!url.is_valid() || !fileapi::IsCros...) ...
8 years, 4 months ago (2012-08-14 18:01:13 UTC) #2
kinuko
Kausalya, thanks for your comments. I will address them once cros team agrees with the ...
8 years, 4 months ago (2012-08-16 08:05:05 UTC) #3
zel
LGTM - for ChromeOS part satorux@, please take a look at this as well
8 years, 4 months ago (2012-08-18 00:22:08 UTC) #4
satorux1
LGTM with nits http://codereview.chromium.org/10823273/diff/1036/chrome/browser/chromeos/extensions/file_handler_util.cc File chrome/browser/chromeos/extensions/file_handler_util.cc (right): http://codereview.chromium.org/10823273/diff/1036/chrome/browser/chromeos/extensions/file_handler_util.cc#newcode597 chrome/browser/chromeos/extensions/file_handler_util.cc:597: bool is_gdata_file = url.type() == fileapi::kFileSystemTypeGData; ...
8 years, 4 months ago (2012-08-20 03:30:22 UTC) #5
satorux1
http://codereview.chromium.org/10823273/diff/1036/webkit/fileapi/file_system_url.h File webkit/fileapi/file_system_url.h (right): http://codereview.chromium.org/10823273/diff/1036/webkit/fileapi/file_system_url.h#newcode34 webkit/fileapi/file_system_url.h:34: const FilePath& path() const { return path_; } function ...
8 years, 4 months ago (2012-08-20 03:51:43 UTC) #6
tzik
LGTM http://codereview.chromium.org/10823273/diff/1036/webkit/fileapi/file_system_url.cc File webkit/fileapi/file_system_url.cc (right): http://codereview.chromium.org/10823273/diff/1036/webkit/fileapi/file_system_url.cc#newcode44 webkit/fileapi/file_system_url.cc:44: url.path_ = path; Could you invalidate virtual_path here?
8 years, 4 months ago (2012-08-20 03:58:50 UTC) #7
kinuko
Thanks for your review! http://codereview.chromium.org/10823273/diff/1036/chrome/browser/chromeos/extensions/file_browser_private_api.cc File chrome/browser/chromeos/extensions/file_browser_private_api.cc (right): http://codereview.chromium.org/10823273/diff/1036/chrome/browser/chromeos/extensions/file_browser_private_api.cc#newcode508 chrome/browser/chromeos/extensions/file_browser_private_api.cc:508: if (!fileapi::IsCrosManagedFileSystemType(url.type())) On 2012/08/14 18:01:13, ...
8 years, 4 months ago (2012-08-20 08:54:35 UTC) #8
kinuko
http://codereview.chromium.org/10823273/diff/1036/webkit/fileapi/file_system_url.h File webkit/fileapi/file_system_url.h (right): http://codereview.chromium.org/10823273/diff/1036/webkit/fileapi/file_system_url.h#newcode38 webkit/fileapi/file_system_url.h:38: const FilePath& virtual_path() const { return virtual_path_; } On ...
8 years, 4 months ago (2012-08-20 10:37:53 UTC) #9
tzik
LGTM http://codereview.chromium.org/10823273/diff/15024/webkit/fileapi/file_system_types.h File webkit/fileapi/file_system_types.h (right): http://codereview.chromium.org/10823273/diff/15024/webkit/fileapi/file_system_types.h#newcode45 webkit/fileapi/file_system_types.h:45: // Indicates a transient, isolated file system for ...
8 years, 4 months ago (2012-08-20 13:03:03 UTC) #10
kmadhusu
Thanks for addressing drive-by comments. lgtm
8 years, 4 months ago (2012-08-21 01:01:06 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kinuko@chromium.org/10823273/15024
8 years, 4 months ago (2012-08-21 04:11:06 UTC) #12
kinuko
Fixed cros tests (gotten broken after the last change). I shouldn't have applied filesystem_id based ...
8 years, 4 months ago (2012-08-21 09:59:16 UTC) #13
kinuko
8 years, 4 months ago (2012-08-21 14:55:23 UTC) #14
Submitting this now.

Powered by Google App Engine
This is Rietveld 408576698