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

Issue 10532085: Retry: Make Isolated file system writable only if it is configured so (Closed)

Created:
8 years, 6 months ago by kinuko
Modified:
8 years, 6 months ago
Reviewers:
tzik, zel, kinaba
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, kinuko+watch, jam, jochen+watch-content_chromium.org, zel
Visibility:
Public.

Description

Retry: Make Isolated file system writable only if it is configured so - CreateFileStreamWriter wiring in FSO - Add yet another write-protection at IsolatedContext (in addition to ChildProcessSecurityPolicy, so that we can make each fs read-only or writable in DRT/testing) BUG=none TEST=existing tests should pass Original review URL: https://chromiumcodereview.appspot.com/10540070 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=141650

Patch Set 1 : #

Patch Set 2 : comment fix #

Total comments: 1

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -38 lines) Patch
M content/browser/child_process_security_policy_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M webkit/chromeos/fileapi/cros_mount_point_provider.cc View 1 2 2 chunks +14 lines, -4 lines 0 comments Download
M webkit/fileapi/file_system_operation.cc View 1 chunk +16 lines, -4 lines 0 comments Download
M webkit/fileapi/isolated_context.h View 2 chunks +15 lines, -1 line 0 comments Download
M webkit/fileapi/isolated_context.cc View 3 chunks +19 lines, -1 line 0 comments Download
M webkit/fileapi/isolated_context_unittest.cc View 1 chunk +24 lines, -0 lines 0 comments Download
M webkit/fileapi/isolated_mount_point_provider.h View 1 chunk +0 lines, -3 lines 0 comments Download
M webkit/fileapi/isolated_mount_point_provider.cc View 4 chunks +25 lines, -19 lines 0 comments Download
M webkit/fileapi/sandbox_mount_point_provider.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M webkit/fileapi/test_mount_point_provider.cc View 2 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
kinuko
Added CrOSMountPointProvider::CreateFileStreamWriter for local mount points as the original patch broke chromeos build. Inaba-san could ...
8 years, 6 months ago (2012-06-12 06:25:51 UTC) #1
zel
LGTM for ChromeOS part
8 years, 6 months ago (2012-06-12 06:38:07 UTC) #2
kinaba
LGTM with a nit. http://codereview.chromium.org/10532085/diff/9003/webkit/chromeos/fileapi/cros_mount_point_provider.cc File webkit/chromeos/fileapi/cros_mount_point_provider.cc (right): http://codereview.chromium.org/10532085/diff/9003/webkit/chromeos/fileapi/cros_mount_point_provider.cc#newcode275 webkit/chromeos/fileapi/cros_mount_point_provider.cc:275: const MountPoint* mount_point = GetMountPoint(virtual_path); ...
8 years, 6 months ago (2012-06-12 06:39:32 UTC) #3
kinuko
8 years, 6 months ago (2012-06-12 08:48:12 UTC) #4
On 2012/06/12 06:39:32, kinaba wrote:
> LGTM with a nit.
> 
>
http://codereview.chromium.org/10532085/diff/9003/webkit/chromeos/fileapi/cro...
> File webkit/chromeos/fileapi/cros_mount_point_provider.cc (right):
> 
>
http://codereview.chromium.org/10532085/diff/9003/webkit/chromeos/fileapi/cro...
> webkit/chromeos/fileapi/cros_mount_point_provider.cc:275: const MountPoint*
> mount_point = GetMountPoint(virtual_path);
> We need to exit earlier for NULL return:
> if (!mount_point)
>   return NULL;
> otherwise it may bite us in line 280.

Thanks, will do before submitting!

Powered by Google App Engine
This is Rietveld 408576698