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

Issue 9284013: Extension Storage API: expose storage quota information to extensions, via: (Closed)

Created:
8 years, 11 months ago by not at google - send to devlin
Modified:
8 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, mihaip+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Extension Storage API: expose storage quota information to extensions, via: - exposing the constants as properties on chrome.storage.{sync,local}, and - adding a new API call "getBytesInUse". BUG=110980, 110583, 110663 TEST=unit_tests --gtest_filter=ExtensionSettingsFrontendTest*, browser_tests --gtest_filter=ExtensionSetting* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=119598 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=119643

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : licenses #

Patch Set 4 : . #

Total comments: 3

Patch Set 5 : comments #

Total comments: 4

Patch Set 6 : . #

Total comments: 2

Patch Set 7 : . #

Patch Set 8 : . #

Patch Set 9 : . #

Patch Set 10 : . #

Patch Set 11 : sync .... again .... #

Patch Set 12 : sync for the last time #

Patch Set 13 : seriousky last time #

Patch Set 14 : with use-after-free fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+708 lines, -99 lines) Patch
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/settings/failing_settings_storage.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/settings/failing_settings_storage.cc View 1 2 3 4 2 chunks +22 lines, -1 line 0 comments Download
M chrome/browser/extensions/settings/settings_api.h View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/browser/extensions/settings/settings_api.cc View 1 2 3 4 5 4 chunks +39 lines, -4 lines 0 comments Download
M chrome/browser/extensions/settings/settings_frontend.h View 1 2 3 4 5 6 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/extensions/settings/settings_frontend.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +44 lines, -29 lines 0 comments Download
M chrome/browser/extensions/settings/settings_leveldb_storage.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/settings/settings_leveldb_storage.cc View 1 2 3 4 2 chunks +20 lines, -1 line 0 comments Download
M chrome/browser/extensions/settings/settings_quota_unittest.cc View 1 2 3 4 2 chunks +37 lines, -2 lines 0 comments Download
M chrome/browser/extensions/settings/settings_storage.h View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/settings/settings_storage_quota_enforcer.h View 1 2 3 4 7 8 3 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/extensions/settings/settings_storage_quota_enforcer.cc View 1 2 3 4 5 6 7 8 6 chunks +39 lines, -16 lines 0 comments Download
M chrome/browser/extensions/settings/syncable_settings_storage.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/settings/syncable_settings_storage.cc View 1 2 3 4 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/extensions/settings/testing_settings_storage.h View 1 2 3 4 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/settings/testing_settings_storage.cc View 1 2 3 4 2 chunks +20 lines, -1 line 0 comments Download
M chrome/browser/extensions/settings/weak_unlimited_settings_storage.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/settings/weak_unlimited_settings_storage.cc View 1 2 3 4 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/storage.json View 1 2 3 4 4 chunks +63 lines, -6 lines 0 comments Download
M chrome/common/extensions/docs/storage.html View 1 2 3 4 9 chunks +286 lines, -21 lines 0 comments Download
M chrome/renderer/resources/extensions/schema_generated_bindings.js View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/storage_custom_bindings.js View 1 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/test/data/extensions/api_test/settings/simple_test/background.js View 1 2 3 4 2 chunks +45 lines, -1 line 0 comments Download

Messages

Total messages: 24 (0 generated)
not at google - send to devlin
Hi guys (in particular mpcomplete/aa) Check out the bugs to see why I'm doing this ...
8 years, 11 months ago (2012-01-24 05:44:50 UTC) #1
Matt Perry
mostly LG, just not sure about the constants. I think it makes sense to be ...
8 years, 11 months ago (2012-01-24 21:54:59 UTC) #2
not at google - send to devlin
Cool, I'll do that today then. https://chromiumcodereview.appspot.com/9284013/diff/5001/chrome/common/extensions/api/storage.json File chrome/common/extensions/api/storage.json (right): https://chromiumcodereview.appspot.com/9284013/diff/5001/chrome/common/extensions/api/storage.json#newcode174 chrome/common/extensions/api/storage.json:174: "QUOTA_BYTES": { On ...
8 years, 11 months ago (2012-01-24 21:56:48 UTC) #3
Matt Perry
https://chromiumcodereview.appspot.com/9284013/diff/5001/chrome/common/extensions/api/storage.json File chrome/common/extensions/api/storage.json (right): https://chromiumcodereview.appspot.com/9284013/diff/5001/chrome/common/extensions/api/storage.json#newcode174 chrome/common/extensions/api/storage.json:174: "QUOTA_BYTES": { On 2012/01/24 21:56:48, kalman wrote: > On ...
8 years, 11 months ago (2012-01-24 22:02:19 UTC) #4
Aaron Boodman
https://chromiumcodereview.appspot.com/9284013/diff/7001/chrome/browser/extensions/settings/settings_api.cc File chrome/browser/extensions/settings/settings_api.cc (right): https://chromiumcodereview.appspot.com/9284013/diff/7001/chrome/browser/extensions/settings/settings_api.cc#newcode187 chrome/browser/extensions/settings/settings_api.cc:187: Value *input; *twitch* - initialize primitives. https://chromiumcodereview.appspot.com/9284013/diff/7001/chrome/common/extensions/api/storage.json File chrome/common/extensions/api/storage.json ...
8 years, 11 months ago (2012-01-24 23:40:53 UTC) #5
not at google - send to devlin
@mpcomplete I added those new methods, and tests, so you might want to check out ...
8 years, 11 months ago (2012-01-25 00:00:13 UTC) #6
Aaron Boodman
On 2012/01/25 00:00:13, kalman wrote: > @mpcomplete I added those new methods, and tests, so ...
8 years, 11 months ago (2012-01-25 00:11:52 UTC) #7
Matt Perry
lgtm https://chromiumcodereview.appspot.com/9284013/diff/11006/chrome/browser/extensions/settings/settings_storage_quota_enforcer.cc File chrome/browser/extensions/settings/settings_storage_quota_enforcer.cc (right): https://chromiumcodereview.appspot.com/9284013/diff/11006/chrome/browser/extensions/settings/settings_storage_quota_enforcer.cc#newcode107 chrome/browser/extensions/settings/settings_storage_quota_enforcer.cc:107: used += it->second; ? Don't you need to ...
8 years, 11 months ago (2012-01-25 00:14:17 UTC) #8
not at google - send to devlin
https://chromiumcodereview.appspot.com/9284013/diff/11006/chrome/browser/extensions/settings/settings_storage_quota_enforcer.cc File chrome/browser/extensions/settings/settings_storage_quota_enforcer.cc (right): https://chromiumcodereview.appspot.com/9284013/diff/11006/chrome/browser/extensions/settings/settings_storage_quota_enforcer.cc#newcode107 chrome/browser/extensions/settings/settings_storage_quota_enforcer.cc:107: used += it->second; On 2012/01/25 00:14:17, Matt Perry wrote: ...
8 years, 11 months ago (2012-01-25 00:31:49 UTC) #9
not at google - send to devlin
> Another option would be leave them as properties in the api json, but add ...
8 years, 11 months ago (2012-01-25 00:41:34 UTC) #10
Aaron Boodman
On Tue, Jan 24, 2012 at 4:41 PM, <kalman@chromium.org> wrote: >> Another option would be ...
8 years, 11 months ago (2012-01-25 00:48:44 UTC) #11
not at google - send to devlin
On 2012/01/25 00:41:34, kalman wrote: > > Another option would be leave them as properties ...
8 years, 11 months ago (2012-01-25 00:48:59 UTC) #12
not at google - send to devlin
done stuff
8 years, 11 months ago (2012-01-25 03:17:09 UTC) #13
not at google - send to devlin
By the way, the base/ changes I've put in a separate patch to submit separately, ...
8 years, 11 months ago (2012-01-25 03:57:31 UTC) #14
Aaron Boodman
lgtm
8 years, 11 months ago (2012-01-26 23:48:54 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/9284013/11010
8 years, 11 months ago (2012-01-27 00:16:52 UTC) #16
commit-bot: I haz the power
Try job failure for 9284013-11010 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 11 months ago (2012-01-27 01:08:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/9284013/17001
8 years, 11 months ago (2012-01-27 03:45:29 UTC) #18
commit-bot: I haz the power
Try job failure for 9284013-17001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 11 months ago (2012-01-27 04:28:56 UTC) #19
not at google - send to devlin
Oh, cos size_t is different on different platforms. Duh. Stupid language.
8 years, 11 months ago (2012-01-27 04:34:02 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/9284013/22002
8 years, 11 months ago (2012-01-28 04:34:52 UTC) #21
commit-bot: I haz the power
Change committed as 119598
8 years, 11 months ago (2012-01-28 08:46:37 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/9284013/18058
8 years, 10 months ago (2012-01-29 09:24:07 UTC) #23
commit-bot: I haz the power
8 years, 10 months ago (2012-01-29 11:19:13 UTC) #24
Change committed as 119643

Powered by Google App Engine
This is Rietveld 408576698