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

Issue 8491033: Extension Settings API: throttle the API in the same way that the Bookmarks API (Closed)

Created:
9 years, 1 month ago by not at google - send to devlin
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Erik does not do reviews, mihaip+watch_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Extension Settings API: throttle the API in the same way that the Bookmarks API is throttled. BUG=98498 TEST=*ExtensionSettings* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110854

Patch Set 1 #

Patch Set 2 : sync, use SingletonBucketMapper #

Total comments: 2

Patch Set 3 : override to bookmarks api #

Patch Set 4 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -10 lines) Patch
M chrome/browser/bookmarks/bookmark_extension_api.h View 1 2 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_function.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_webrequest_api.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_webrequest_api.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/settings/settings_api.h View 3 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/settings/settings_api.cc View 1 2 3 7 chunks +47 lines, -3 lines 0 comments Download
M chrome/test/data/extensions/api_test/settings/simple_test/background.html View 1 1 chunk +15 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
not at google - send to devlin
Note: I just basically copied what the Bookmarks API does, with a few modifications from ...
9 years, 1 month ago (2011-11-11 03:06:01 UTC) #1
Matt Perry
Is this really what we want to do? What if it worked the following way: ...
9 years, 1 month ago (2011-11-11 03:23:07 UTC) #2
not at google - send to devlin
On 2011/11/11 03:23:07, Matt Perry wrote: > Is this really what we want to do? ...
9 years, 1 month ago (2011-11-11 03:39:26 UTC) #3
not at google - send to devlin
I might go ahead and give this a go, actually. The general algorithm would be ...
9 years, 1 month ago (2011-11-14 07:51:28 UTC) #4
not at google - send to devlin
(Oops, forgot to do quota_service_.SubtractQuota(changes) or something. Whatever). The main behavioural disadvantage of this is ...
9 years, 1 month ago (2011-11-14 07:54:42 UTC) #5
Matt Perry
On 2011/11/14 07:54:42, kalman wrote: > (Oops, forgot to do quota_service_.SubtractQuota(changes) or something. > Whatever). ...
9 years, 1 month ago (2011-11-14 19:15:49 UTC) #6
tim (not reviewing)
The ExtensionsQuotaService was initially written primarily so that poorly written extensions (and e.g. bugs) wouldn't ...
9 years, 1 month ago (2011-11-14 21:22:09 UTC) #7
not at google - send to devlin
Cool, as discussed, sounds like this patch should go in (particularly IMO because of the ...
9 years, 1 month ago (2011-11-16 12:17:31 UTC) #8
akalin
I'll let tim handle this review, as he knows the throttling stuff better than I ...
9 years, 1 month ago (2011-11-17 03:38:26 UTC) #9
tim (not reviewing)
http://codereview.chromium.org/8491033/diff/8001/chrome/browser/extensions/extension_function.h File chrome/browser/extensions/extension_function.h (right): http://codereview.chromium.org/8491033/diff/8001/chrome/browser/extensions/extension_function.h#newcode85 chrome/browser/extensions/extension_function.h:85: QuotaLimitHeuristics* heuristics) const {} I think the bookmark_extension_api is ...
9 years, 1 month ago (2011-11-17 18:59:52 UTC) #10
not at google - send to devlin
http://codereview.chromium.org/8491033/diff/8001/chrome/browser/extensions/extension_function.h File chrome/browser/extensions/extension_function.h (right): http://codereview.chromium.org/8491033/diff/8001/chrome/browser/extensions/extension_function.h#newcode85 chrome/browser/extensions/extension_function.h:85: QuotaLimitHeuristics* heuristics) const {} On 2011/11/17 18:59:52, timsteele wrote: ...
9 years, 1 month ago (2011-11-18 03:49:00 UTC) #11
tim (not reviewing)
On 2011/11/18 03:49:00, kalman wrote: > http://codereview.chromium.org/8491033/diff/8001/chrome/browser/extensions/extension_function.h > File chrome/browser/extensions/extension_function.h (right): > > http://codereview.chromium.org/8491033/diff/8001/chrome/browser/extensions/extension_function.h#newcode85 > ...
9 years, 1 month ago (2011-11-18 07:00:00 UTC) #12
Aaron Boodman
LGTM extensions
9 years, 1 month ago (2011-11-18 07:52:35 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/8491033/20001
9 years, 1 month ago (2011-11-20 01:30:03 UTC) #14
commit-bot: I haz the power
9 years, 1 month ago (2011-11-20 02:36:25 UTC) #15
Change committed as 110854

Powered by Google App Engine
This is Rietveld 408576698