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

Issue 10826270: QuotaManager: Return the remaining free disk space as quota. (Closed)

Created:
8 years, 4 months ago by James Hawkins
Modified:
8 years, 4 months ago
CC:
chromium-reviews, darin-cc_chromium.org
Visibility:
Public.

Description

QuotaManager: Return the remaining free disk space as quota. Previously we returned kNoLimit, which prevents apps from managing disk usage. BUG=141583 TEST= R=kinuko Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=153248

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rewrite. #

Patch Set 3 : Cleanup 1. #

Patch Set 4 : Cleanup 2. #

Total comments: 8

Patch Set 5 : Review fixes. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+128 lines, -64 lines) Patch
M chrome/browser/extensions/extension_special_storage_policy.h View 1 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_special_storage_policy.cc View 1 2 3 4 4 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/extensions/mock_extension_special_storage_policy.h View 1 2 3 2 chunks +1 line, -22 lines 0 comments Download
M chrome/browser/extensions/mock_extension_special_storage_policy.cc View 1 2 3 1 chunk +8 lines, -4 lines 0 comments Download
M webkit/quota/mock_special_storage_policy.h View 1 2 3 4 chunks +9 lines, -0 lines 0 comments Download
M webkit/quota/mock_special_storage_policy.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/quota/quota_manager.h View 1 2 3 4 4 chunks +17 lines, -3 lines 0 comments Download
M webkit/quota/quota_manager.cc View 1 2 3 4 7 chunks +24 lines, -8 lines 0 comments Download
M webkit/quota/quota_manager_unittest.cc View 1 2 3 11 chunks +50 lines, -27 lines 0 comments Download
M webkit/quota/special_storage_policy.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
James Hawkins
8 years, 4 months ago (2012-08-13 13:45:07 UTC) #1
kinuko
(Some preliminary comments) http://codereview.chromium.org/10826270/diff/1/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/10826270/diff/1/webkit/quota/quota_manager.cc#newcode86 webkit/quota/quota_manager.cc:86: int64 quota = unlimited ? quota_and_usage.available_disk_space ...
8 years, 4 months ago (2012-08-13 14:07:52 UTC) #2
James Hawkins
http://codereview.chromium.org/10826270/diff/1/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/10826270/diff/1/webkit/quota/quota_manager.cc#newcode86 webkit/quota/quota_manager.cc:86: int64 quota = unlimited ? quota_and_usage.available_disk_space : On 2012/08/13 ...
8 years, 4 months ago (2012-08-17 21:33:22 UTC) #3
James Hawkins
On 2012/08/17 21:33:22, James Hawkins wrote: > http://codereview.chromium.org/10826270/diff/1/webkit/quota/quota_manager.cc > File webkit/quota/quota_manager.cc (right): > > http://codereview.chromium.org/10826270/diff/1/webkit/quota/quota_manager.cc#newcode86 ...
8 years, 4 months ago (2012-08-17 21:42:14 UTC) #4
James Hawkins
On 2012/08/17 21:42:14, James Hawkins wrote: > On 2012/08/17 21:33:22, James Hawkins wrote: > > ...
8 years, 4 months ago (2012-08-17 22:19:06 UTC) #5
James Hawkins
Ready for another look. New version uses a function pointer which can be set by ...
8 years, 4 months ago (2012-08-17 23:23:40 UTC) #6
kinuko
http://codereview.chromium.org/10826270/diff/2003/webkit/quota/quota_manager.cc File webkit/quota/quota_manager.cc (right): http://codereview.chromium.org/10826270/diff/2003/webkit/quota/quota_manager.cc#newcode89 webkit/quota/quota_manager.cc:89: kint64max; nit: kint64max -> kNoLimit since that's what we ...
8 years, 4 months ago (2012-08-20 04:04:44 UTC) #7
michaeln
https://chromiumcodereview.appspot.com/10826270/diff/2003/chrome/browser/extensions/extension_special_storage_policy.cc File chrome/browser/extensions/extension_special_storage_policy.cc (right): https://chromiumcodereview.appspot.com/10826270/diff/2003/chrome/browser/extensions/extension_special_storage_policy.cc#newcode134 chrome/browser/extensions/extension_special_storage_policy.cc:134: protected_apps_.Clear(); drive by: also call .Clear() on the new ...
8 years, 4 months ago (2012-08-20 23:04:06 UTC) #8
Aaron Boodman
I don't understand why we're tracking the installed apps in this class when we already ...
8 years, 4 months ago (2012-08-21 23:09:46 UTC) #9
kinuko
What would be the recommended way to see if a given origin is for installed ...
8 years, 4 months ago (2012-08-22 01:22:47 UTC) #10
James Hawkins
http://codereview.chromium.org/10826270/diff/2003/chrome/browser/extensions/extension_special_storage_policy.cc File chrome/browser/extensions/extension_special_storage_policy.cc (right): http://codereview.chromium.org/10826270/diff/2003/chrome/browser/extensions/extension_special_storage_policy.cc#newcode134 chrome/browser/extensions/extension_special_storage_policy.cc:134: protected_apps_.Clear(); On 2012/08/20 23:04:06, michaeln wrote: > drive by: ...
8 years, 4 months ago (2012-08-22 18:51:35 UTC) #11
Aaron Boodman
You can get installed extensions and apps on the IO thread via the ExtensionInfoMap class ...
8 years, 4 months ago (2012-08-22 21:28:21 UTC) #12
kinuko
@aa: thanks, to be more specific, Quota code (which lives in webkit/) used to access ...
8 years, 4 months ago (2012-08-23 11:00:44 UTC) #13
James Hawkins
On 2012/08/23 11:00:44, kinuko wrote: > @aa: thanks, to be more specific, Quota code (which ...
8 years, 4 months ago (2012-08-23 15:54:12 UTC) #14
Aaron Boodman
I see. OK, that seems fine.
8 years, 4 months ago (2012-08-23 21:42:20 UTC) #15
Aaron Boodman
(lgtm)
8 years, 4 months ago (2012-08-23 21:42:33 UTC) #16
James Hawkins
On 2012/08/23 21:42:33, Aaron Boodman wrote: > (lgtm) Thank you, Aaron. Kinuko, waiting for your ...
8 years, 4 months ago (2012-08-23 22:08:39 UTC) #17
kinuko
lgtm!
8 years, 4 months ago (2012-08-24 03:25:14 UTC) #18
kinuko
8 years, 4 months ago (2012-08-24 03:27:34 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jhawkins@chromium.org/10826270/17001
8 years, 4 months ago (2012-08-24 03:33:50 UTC) #20
commit-bot: I haz the power
Try job failure for 10826270-17001 (retry) on linux_chromeos for step "browser_tests". It's a second try, ...
8 years, 4 months ago (2012-08-24 07:29:19 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jhawkins@chromium.org/10826270/17001
8 years, 4 months ago (2012-08-24 15:26:48 UTC) #22
commit-bot: I haz the power
8 years, 4 months ago (2012-08-24 18:54:54 UTC) #23
Change committed as 153248

Powered by Google App Engine
This is Rietveld 408576698