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

Unified Diff: chrome/browser/bookmarks/bookmark_extension_api.cc

Issue 10871034: Make all quota-exceeding messages in the storage API explain what the failure (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 e9f7cc4adf79320510a913e86ef290092fa37bef..7860f4dcd0b9ad0b6b796d6103d16ebdeb4fbf47 100644
--- a/chrome/browser/bookmarks/bookmark_extension_api.cc
+++ b/chrome/browser/bookmarks/bookmark_extension_api.cc
@@ -814,10 +814,16 @@ class BookmarksQuotaLimitFactory {
TimeDelta::FromHours(1) // 1 hour long refill interval.
};
- TimedLimit* timed = new TimedLimit(kLongLimitConfig, long_mapper);
+ TimedLimit* timed = new TimedLimit(
+ kLongLimitConfig,
+ long_mapper,
+ "operations per minute");
// A max of two operations per minute, sustained over 10 minutes.
- SustainedLimit* sustained = new SustainedLimit(TimeDelta::FromMinutes(10),
- kShortLimitConfig, short_mapper);
+ SustainedLimit* sustained = new SustainedLimit(
+ TimeDelta::FromMinutes(10),
+ kShortLimitConfig,
+ short_mapper,
+ "sustained operations per 10 minutes");
heuristics->push_back(timed);
heuristics->push_back(sustained);
}

Powered by Google App Engine
This is Rietveld 408576698