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

Issue 10692104: Add isWritableFileEntry to the fileSystem API (Closed)

Created:
8 years, 5 months ago by thorogood
Modified:
8 years, 5 months ago
CC:
chromium-reviews, Aaron Boodman, kinuko+watch, mihaip-chromium-reviews_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add isWritableFileEntry to the fileSystem API isWritableFileEntry determines whether an existing FileEntry, obtained via getWritableFileEntry or chooseFile, is writable (otherwise, we assume it is readable). BUG=135689 TEST= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=147399

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 9

Patch Set 4 : #

Patch Set 5 : #

Total comments: 2

Patch Set 6 : sync to head, use SetResult() instead of result_ directly. #

Patch Set 7 : added presubmit fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+102 lines, -4 lines) Patch
M chrome/browser/extensions/api/file_system/file_system_api.h View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_api.cc View 1 2 3 4 5 2 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_apitest.cc View 1 2 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/common/extensions/PRESUBMIT.py View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/extensions/api/file_system.idl View 1 2 3 4 5 2 chunks +6 lines, -1 line 0 comments Download
M chrome/renderer/resources/extensions/file_system_custom_bindings.js View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/file_system/get_writable_file_entry/test.js View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/background.js View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/manifest.json View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/test.html View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/test.js View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/file_system/test_util.js View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/child_process_security_policy_impl.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/child_process_security_policy_impl.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download
M content/public/browser/child_process_security_policy.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
thorogood
8 years, 5 months ago (2012-07-10 06:03:01 UTC) #1
benwells
https://chromiumcodereview.appspot.com/10692104/diff/2001/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): https://chromiumcodereview.appspot.com/10692104/diff/2001/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode138 chrome/browser/extensions/api/file_system/file_system_api.cc:138: return false; Nit: add blank line after early return. ...
8 years, 5 months ago (2012-07-10 06:40:23 UTC) #2
thorogood
https://chromiumcodereview.appspot.com/10692104/diff/2001/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): https://chromiumcodereview.appspot.com/10692104/diff/2001/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode138 chrome/browser/extensions/api/file_system/file_system_api.cc:138: return false; On 2012/07/10 06:40:23, benwells wrote: > Nit: ...
8 years, 5 months ago (2012-07-10 06:49:22 UTC) #3
thorogood
https://chromiumcodereview.appspot.com/10692104/diff/2001/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): https://chromiumcodereview.appspot.com/10692104/diff/2001/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode243 chrome/browser/extensions/api/file_system/file_system_api.cc:243: if (!HasFileSystemWritePermission(GetExtension())) { On 2012/07/10 06:49:22, thorogood wrote: > ...
8 years, 5 months ago (2012-07-10 08:06:16 UTC) #4
benwells
lgtm +kinuko for file system perspective +mihai for api +avi as content owner
8 years, 5 months ago (2012-07-11 04:49:18 UTC) #5
kinuko
On 2012/07/11 04:49:18, benwells wrote: > lgtm > +kinuko for file system perspective > +mihai ...
8 years, 5 months ago (2012-07-11 05:16:40 UTC) #6
Mihai Parparita -not on Chrome
LGTM http://codereview.chromium.org/10692104/diff/4002/chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/background.js File chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/background.js (right): http://codereview.chromium.org/10692104/diff/4002/chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/background.js#newcode6 chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/background.js:6: chrome.appWindow.create('test.html'); Do you actually need to create the ...
8 years, 5 months ago (2012-07-11 05:35:51 UTC) #7
thorogood
http://codereview.chromium.org/10692104/diff/4002/chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/background.js File chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/background.js (right): http://codereview.chromium.org/10692104/diff/4002/chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/background.js#newcode6 chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/background.js:6: chrome.appWindow.create('test.html'); On 2012/07/11 05:35:51, Mihai Parparita wrote: > Do ...
8 years, 5 months ago (2012-07-12 01:21:37 UTC) #8
benwells
On 2012/07/12 01:21:37, thorogood wrote: > http://codereview.chromium.org/10692104/diff/4002/chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/background.js > File > chrome/test/data/extensions/api_test/file_system/is_writable_file_entry/background.js > (right): > > ...
8 years, 5 months ago (2012-07-12 01:40:13 UTC) #9
thorogood
-avi, who is on holiday +brettw, for content
8 years, 5 months ago (2012-07-13 00:23:39 UTC) #10
brettw
owners lgtm for content.
8 years, 5 months ago (2012-07-17 20:07:41 UTC) #11
thorogood
On 2012/07/17 20:07:41, brettw wrote: > owners lgtm for content.
8 years, 5 months ago (2012-07-18 03:33:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10692104/4002
8 years, 5 months ago (2012-07-18 03:33:48 UTC) #13
commit-bot: I haz the power
Try job failure for 10692104-4002 (retry) on linux_clang for step "compile" (clobber build). It's a ...
8 years, 5 months ago (2012-07-18 03:52:42 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10692104/24004
8 years, 5 months ago (2012-07-18 04:57:25 UTC) #15
thorogood
On 2012/07/18 03:52:42, I haz the power (commit-bot) wrote: > Try job failure for 10692104-4002 ...
8 years, 5 months ago (2012-07-18 04:57:34 UTC) #16
thorogood
On 2012/07/18 04:57:34, thorogood wrote: > On 2012/07/18 03:52:42, I haz the power (commit-bot) wrote: ...
8 years, 5 months ago (2012-07-19 00:01:05 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10692104/27002
8 years, 5 months ago (2012-07-19 00:01:06 UTC) #18
commit-bot: I haz the power
Try job failure for 10692104-27002 (retry) on mac_rel for step "browser_tests". It's a second try, ...
8 years, 5 months ago (2012-07-19 01:11:32 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thorogood@chromium.org/10692104/27002
8 years, 5 months ago (2012-07-19 03:34:04 UTC) #20
thorogood
On 2012/07/19 01:11:32, I haz the power (commit-bot) wrote: > Try job failure for 10692104-27002 ...
8 years, 5 months ago (2012-07-19 03:34:17 UTC) #21
commit-bot: I haz the power
8 years, 5 months ago (2012-07-19 05:32:12 UTC) #22
Change committed as 147399

Powered by Google App Engine
This is Rietveld 408576698