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

Issue 13508005: Allow RequestOSFileHandle if an app has unlimited storage (Closed)

Created:
7 years, 8 months ago by hamaji
Modified:
7 years, 8 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, kinuko+watch, jam, tzik+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Allow RequestOSFileHandle if an app has unlimited storage When FileIO::Open is called and renderer gets file handle from process, the IPC also passes the info of quota limit. BUG=224123, 224753 TEST=browser_tests, trybots Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193914

Patch Set 1 #

Total comments: 4

Patch Set 2 : per kinuko's comment #

Total comments: 8

Patch Set 3 : address dmichael's comment #

Patch Set 4 : dcheck #

Total comments: 2

Patch Set 5 : CHECK #

Patch Set 6 : revert most of patch set 2 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+63 lines, -18 lines) Patch
M chrome/test/ppapi/ppapi_test.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/browser/fileapi/fileapi_message_filter.cc View 1 2 3 4 5 2 chunks +20 lines, -2 lines 4 comments Download
M content/common/fileapi/file_system_dispatcher.h View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M content/common/fileapi/file_system_dispatcher.cc View 1 2 3 4 5 1 chunk +5 lines, -2 lines 0 comments Download
M content/common/fileapi/file_system_messages.h View 1 2 3 4 5 3 chunks +5 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_directory_reader_host.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M content/renderer/pepper/pepper_file_io_host.h View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M content/renderer/pepper/pepper_file_io_host.cc View 1 2 3 4 5 4 chunks +8 lines, -4 lines 0 comments Download
M content/renderer/pepper/pepper_plugin_delegate_impl.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M webkit/fileapi/file_system_callback_dispatcher.h View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M webkit/fileapi/file_system_callback_dispatcher.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/plugin_delegate.h View 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M webkit/quota/quota_types.h View 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
hamaji
7 years, 8 months ago (2013-04-04 09:35:14 UTC) #1
kinuko
https://codereview.chromium.org/13508005/diff/1/content/renderer/pepper/pepper_file_io_host.cc File content/renderer/pepper/pepper_file_io_host.cc (right): https://codereview.chromium.org/13508005/diff/1/content/renderer/pepper/pepper_file_io_host.cc#newcode541 content/renderer/pepper/pepper_file_io_host.cc:541: //quota_limit_type_ = quota_limit_type; need to comment this in? https://codereview.chromium.org/13508005/diff/1/webkit/quota/quota_types.h ...
7 years, 8 months ago (2013-04-04 11:01:41 UTC) #2
hamaji
Thanks for the quick review (and local discussion)! https://codereview.chromium.org/13508005/diff/1/content/renderer/pepper/pepper_file_io_host.cc File content/renderer/pepper/pepper_file_io_host.cc (right): https://codereview.chromium.org/13508005/diff/1/content/renderer/pepper/pepper_file_io_host.cc#newcode541 content/renderer/pepper/pepper_file_io_host.cc:541: //quota_limit_type_ ...
7 years, 8 months ago (2013-04-04 11:50:12 UTC) #3
dmichael (off chromium)
https://chromiumcodereview.appspot.com/13508005/diff/5002/chrome/test/ppapi/ppapi_test.cc File chrome/test/ppapi/ppapi_test.cc (left): https://chromiumcodereview.appspot.com/13508005/diff/5002/chrome/test/ppapi/ppapi_test.cc#oldcode137 chrome/test/ppapi/ppapi_test.cc:137: "127.0.0.1"); Are you planning to remove that flag in ...
7 years, 8 months ago (2013-04-04 17:25:08 UTC) #4
yzshen1
LGTM Thanks!
7 years, 8 months ago (2013-04-04 18:22:57 UTC) #5
hamaji
https://codereview.chromium.org/13508005/diff/5002/chrome/test/ppapi/ppapi_test.cc File chrome/test/ppapi/ppapi_test.cc (left): https://codereview.chromium.org/13508005/diff/5002/chrome/test/ppapi/ppapi_test.cc#oldcode137 chrome/test/ppapi/ppapi_test.cc:137: "127.0.0.1"); Yes, I think I'll remove that flag by ...
7 years, 8 months ago (2013-04-04 22:27:22 UTC) #6
kinuko
https://codereview.chromium.org/13508005/diff/5002/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/13508005/diff/5002/content/browser/fileapi/fileapi_message_filter.cc#newcode700 content/browser/fileapi/fileapi_message_filter.cc:700: if (quota_manager_proxy) { On 2013/04/04 22:27:22, hamaji wrote: > ...
7 years, 8 months ago (2013-04-05 02:37:11 UTC) #7
hamaji
https://codereview.chromium.org/13508005/diff/5002/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/13508005/diff/5002/content/browser/fileapi/fileapi_message_filter.cc#newcode700 content/browser/fileapi/fileapi_message_filter.cc:700: if (quota_manager_proxy) { I see, thanks! I added DCHECK ...
7 years, 8 months ago (2013-04-05 03:33:18 UTC) #8
dmichael (off chromium)
https://codereview.chromium.org/13508005/diff/18001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/13508005/diff/18001/content/browser/fileapi/fileapi_message_filter.cc#newcode700 content/browser/fileapi/fileapi_message_filter.cc:700: DCHECK(quota_manager_proxy->quota_manager()); If quota_manager_proxy is ever actually NULL, you'll dereference ...
7 years, 8 months ago (2013-04-05 15:39:28 UTC) #9
hamaji
https://codereview.chromium.org/13508005/diff/18001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/13508005/diff/18001/content/browser/fileapi/fileapi_message_filter.cc#newcode700 content/browser/fileapi/fileapi_message_filter.cc:700: DCHECK(quota_manager_proxy->quota_manager()); Done, by CHECK On 2013/04/05 15:39:28, dmichael wrote: ...
7 years, 8 months ago (2013-04-05 17:00:49 UTC) #10
dmichael (off chromium)
lgtm
7 years, 8 months ago (2013-04-05 17:04:06 UTC) #11
kinuko
The permission issue may still change per ongoing discussion, but lgtm in case you need ...
7 years, 8 months ago (2013-04-06 04:37:44 UTC) #12
hamaji
Per email discussion, I've reverted most changes in patch set 2 (except a bug fix). ...
7 years, 8 months ago (2013-04-10 02:46:30 UTC) #13
cevans
[+aedla] @aedla: you can take this one in your timezone? :D I'm just off home. ...
7 years, 8 months ago (2013-04-10 03:13:44 UTC) #14
kinuko
https://codereview.chromium.org/13508005/diff/32001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/13508005/diff/32001/content/browser/fileapi/fileapi_message_filter.cc#newcode703 content/browser/fileapi/fileapi_message_filter.cc:703: url.origin(), FileSystemTypeToQuotaStorageType(url.type()))) { From the discussion, probably we should ...
7 years, 8 months ago (2013-04-10 03:35:18 UTC) #15
hamaji
https://codereview.chromium.org/13508005/diff/32001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/13508005/diff/32001/content/browser/fileapi/fileapi_message_filter.cc#newcode703 content/browser/fileapi/fileapi_message_filter.cc:703: url.origin(), FileSystemTypeToQuotaStorageType(url.type()))) { On 2013/04/10 03:35:19, kinuko wrote: > ...
7 years, 8 months ago (2013-04-10 14:49:17 UTC) #16
aedla
LGTM on IPC change
7 years, 8 months ago (2013-04-10 14:49:50 UTC) #17
dmichael (off chromium)
https://codereview.chromium.org/13508005/diff/32001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/13508005/diff/32001/content/browser/fileapi/fileapi_message_filter.cc#newcode703 content/browser/fileapi/fileapi_message_filter.cc:703: url.origin(), FileSystemTypeToQuotaStorageType(url.type()))) { I'm not sure I understand. IsInstalledApp(path) ...
7 years, 8 months ago (2013-04-10 16:02:42 UTC) #18
kinuko
https://codereview.chromium.org/13508005/diff/32001/content/browser/fileapi/fileapi_message_filter.cc File content/browser/fileapi/fileapi_message_filter.cc (right): https://codereview.chromium.org/13508005/diff/32001/content/browser/fileapi/fileapi_message_filter.cc#newcode703 content/browser/fileapi/fileapi_message_filter.cc:703: url.origin(), FileSystemTypeToQuotaStorageType(url.type()))) { On 2013/04/10 16:02:42, dmichael wrote: > ...
7 years, 8 months ago (2013-04-11 02:32:45 UTC) #19
hamaji
cevans: Thanks for adding aedla. Now he LGTMed? Could you give me the owner approval?
7 years, 8 months ago (2013-04-12 00:28:34 UTC) #20
Chris Evans
On 2013/04/12 00:28:34, hamaji wrote: > cevans: Thanks for adding aedla. Now he LGTMed? Could ...
7 years, 8 months ago (2013-04-12 00:29:19 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hamaji@chromium.org/13508005/32001
7 years, 8 months ago (2013-04-12 11:12:37 UTC) #22
commit-bot: I haz the power
7 years, 8 months ago (2013-04-12 13:54:20 UTC) #23
Message was sent while issue was closed.
Change committed as 193914

Powered by Google App Engine
This is Rietveld 408576698