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

Unified Diff: components/ntp_snippets/pref_names.cc

Issue 2158843002: Introduce a request throttler for limiting requests in mobile NTP. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: A minor fix #3 Created 4 years, 5 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: components/ntp_snippets/pref_names.cc
diff --git a/components/ntp_snippets/pref_names.cc b/components/ntp_snippets/pref_names.cc
index ecfb9ee0e6ab4fefb4b559310acb5e4c71c9f1d0..3cc8a1d6c72df8b40029e89558e6436a0e514056 100644
--- a/components/ntp_snippets/pref_names.cc
+++ b/components/ntp_snippets/pref_names.cc
@@ -9,5 +9,8 @@ namespace prefs {
const char kSnippetHosts[] = "ntp_snippets.hosts";
+const char kSnippetQuotaDayFormat[] = "ntp_snippets.quota.%s.day";
+const char kSnippetQuotaCountFormat[] = "ntp_snippets.quota.%s.count";
Marc Treib 2016/07/19 09:06:17 Hmmm, this is very uncommon AFAIK. Do you have any
jkrcal 2016/07/20 09:40:39 Now, I register all of them in RequestCounter.
+
} // namespace prefs
} // namespace ntp_snippets

Powered by Google App Engine
This is Rietveld 408576698