| Index: chrome/browser/bookmarks/bookmark_extension_api.cc
|
| diff --git a/chrome/browser/bookmarks/bookmark_extension_api.cc b/chrome/browser/bookmarks/bookmark_extension_api.cc
|
| index b6889ae1329ae0ba0e9ade2e2cb96192010530a7..6c157ac1e06fc90ad692d094c4b084dab6ca4b91 100644
|
| --- a/chrome/browser/bookmarks/bookmark_extension_api.cc
|
| +++ b/chrome/browser/bookmarks/bookmark_extension_api.cc
|
| @@ -794,6 +794,15 @@ class BookmarksQuotaLimitFactory {
|
| private:
|
| static void BuildWithMappers(QuotaLimitHeuristics* heuristics,
|
| BucketMapper* short_mapper, BucketMapper* long_mapper) {
|
| + const Config kShortLimitConfig = {
|
| + 2, // 2 tokens per interval.
|
| + TimeDelta::FromMinutes(1) // 1 minute long refill interval.
|
| + };
|
| + const Config kLongLimitConfig = {
|
| + 100, // 100 tokens per interval.
|
| + TimeDelta::FromHours(1) // 1 hour long refill interval.
|
| + };
|
| +
|
| TimedLimit* timed = new TimedLimit(kLongLimitConfig, long_mapper);
|
| // A max of two operations per minute, sustained over 10 minutes.
|
| SustainedLimit* sustained = new SustainedLimit(TimeDelta::FromMinutes(10),
|
| @@ -802,23 +811,9 @@ class BookmarksQuotaLimitFactory {
|
| heuristics->push_back(sustained);
|
| }
|
|
|
| - // The quota configurations used for all BookmarkFunctions.
|
| - static const Config kShortLimitConfig;
|
| - static const Config kLongLimitConfig;
|
| -
|
| DISALLOW_IMPLICIT_CONSTRUCTORS(BookmarksQuotaLimitFactory);
|
| };
|
|
|
| -const Config BookmarksQuotaLimitFactory::kShortLimitConfig = {
|
| - 2, // 2 tokens per interval.
|
| - TimeDelta::FromMinutes(1) // 1 minute long refill interval.
|
| -};
|
| -
|
| -const Config BookmarksQuotaLimitFactory::kLongLimitConfig = {
|
| - 100, // 100 tokens per interval.
|
| - TimeDelta::FromHours(1) // 1 hour long refill interval.
|
| -};
|
| -
|
| // And finally, building the individual heuristics for each function.
|
| void RemoveBookmarkFunction::GetQuotaLimitHeuristics(
|
| QuotaLimitHeuristics* heuristics) const {
|
|
|