Chromium Code Reviews| Index: chrome/browser/extensions/settings/settings_api.cc |
| diff --git a/chrome/browser/extensions/settings/settings_api.cc b/chrome/browser/extensions/settings/settings_api.cc |
| index 7cf459a822d7d24245b49a31570fccce1fcbe847..d808f19691ceebbeaa10b5b146f754e3a6f58b79 100644 |
| --- a/chrome/browser/extensions/settings/settings_api.cc |
| +++ b/chrome/browser/extensions/settings/settings_api.cc |
| @@ -154,7 +154,9 @@ void GetModificationQuotaLimitHeuristics(QuotaLimitHeuristics* heuristics) { |
| }; |
| heuristics->push_back( |
| new ExtensionsQuotaService::TimedLimit( |
| - longLimitConfig, new QuotaLimitHeuristic::SingletonBucketMapper())); |
| + longLimitConfig, |
| + new QuotaLimitHeuristic::SingletonBucketMapper(), |
| + "MAX_WRITE_OPERATIONS_PER_HOUR")); |
|
Matt Perry
2012/08/23 18:30:35
Let's use a consistent naming scheme for these err
not at google - send to devlin
2012/08/23 23:46:41
I also prefer to read the multi-word phrases; howe
Matt Perry
2012/08/23 23:55:06
That makes sense. Use SYMBOLIC_NAMES everywhere no
not at google - send to devlin
2012/08/24 04:45:04
I've done it in this change because I was unsure w
|
| // A max of 10 operations per minute, sustained over 10 minutes. |
| QuotaLimitHeuristic::Config shortLimitConfig = { |
| @@ -166,7 +168,8 @@ void GetModificationQuotaLimitHeuristics(QuotaLimitHeuristics* heuristics) { |
| new ExtensionsQuotaService::SustainedLimit( |
| base::TimeDelta::FromMinutes(10), |
| shortLimitConfig, |
| - new QuotaLimitHeuristic::SingletonBucketMapper())); |
| + new QuotaLimitHeuristic::SingletonBucketMapper(), |
| + "MAX_SUSTAINED_WRITE_OPERATIONS_PER_MINUTE")); |
| }; |
| } // namespace |