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

Issue 146283002: Apps: Grant sufficient permissions to the filesystem opened by fileSystem API (Closed)

Created:
6 years, 11 months ago by nhiroki
Modified:
6 years, 10 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Matt Giuca, Seigo Nonaka, tzik, benwells
Visibility:
Public.

Description

Apps: Grant sufficient permissions to the filesystem opened by fileSystem API A fileSystem opened by chrome.fileSystem API is passable to a pepper plugin[1], but currently we cannot open any files with CREATE/TRUNCATE flag under the filesystem in plugin-side because the filesystem doesn't have sufficient file permissions (CREATE_OVERWRITE_FILE_PERMISSION is missing). To fix that, this change calls GrantCreateReadWriteFileSystem() for the filesystem instead of GrantCreateFileForFileSystem(). (NOTE) This change works fine only when choosing a directory by the API, and the same issue still happens when choosing a file. I'll address the case in a separate CL. [1] http://crbug.com/177017 BUG=336160 TEST=manual (open a file with CREATE and/or TRUNCATE flag under the passed filesystem in plugin) Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=247596

Patch Set 1 #

Patch Set 2 : clean up #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -4 lines) Patch
M chrome/browser/extensions/api/file_handlers/app_file_handler_util.cc View 1 1 chunk +6 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
nhiroki
Hi, benwells@, can you review this as an owner? tsepez@, can you review this from ...
6 years, 11 months ago (2014-01-27 10:22:42 UTC) #1
Tom Sepez
This should be OK since it applies only to Apps, right?
6 years, 11 months ago (2014-01-27 19:37:52 UTC) #2
nhiroki
Updated (clean-up only). On 2014/01/27 19:37:52, Tom Sepez wrote: > This should be OK since ...
6 years, 11 months ago (2014-01-28 01:45:54 UTC) #3
benwells
Replacing myself with Sam who knows this code better than I do now.
6 years, 11 months ago (2014-01-28 07:05:20 UTC) #4
Sam McNally
lgtm
6 years, 11 months ago (2014-01-28 07:32:38 UTC) #5
Tom Sepez
lgtm
6 years, 10 months ago (2014-01-28 18:11:30 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/146283002/140001
6 years, 10 months ago (2014-01-29 00:01:00 UTC) #7
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) remoting_unittests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=217567
6 years, 10 months ago (2014-01-29 00:50:49 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nhiroki@chromium.org/146283002/140001
6 years, 10 months ago (2014-01-29 01:18:55 UTC) #9
commit-bot: I haz the power
6 years, 10 months ago (2014-01-29 02:28:17 UTC) #10
Message was sent while issue was closed.
Change committed as 247596

Powered by Google App Engine
This is Rietveld 408576698