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

Unified Diff: components/ntp_snippets/pref_names.cc

Issue 2227973002: Add request throttler to thumbnail fetching for articles on mobile NTP (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tim's comments #2 Created 4 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: components/ntp_snippets/pref_names.cc
diff --git a/components/ntp_snippets/pref_names.cc b/components/ntp_snippets/pref_names.cc
index 67e1dc64b30b246b755e1ff51c69b073b0eddaa2..0ef1c793ea639ad80d309049f6de31be07bcea99 100644
--- a/components/ntp_snippets/pref_names.cc
+++ b/components/ntp_snippets/pref_names.cc
@@ -11,10 +11,19 @@ const char kEnableSnippets[] = "ntp_snippets.enable";
const char kSnippetHosts[] = "ntp_snippets.hosts";
-const char kSnippetFetcherQuotaDay[] =
- "ntp.request_throttler.suggestion_fetcher.day";
-const char kSnippetFetcherQuotaCount[] =
+const char kSnippetFetcherRequestCount[] =
"ntp.request_throttler.suggestion_fetcher.count";
+const char kSnippetFetcherInteractiveRequestCount[] =
+ "ntp.request_throttler.suggestion_fetcher.interactive_count";
+const char kSnippetFetcherRequestsDay[] =
+ "ntp.request_throttler.suggestion_fetcher.day";
+
+const char kSnippetThumbnailsRequestCount[] =
+ "ntp.request_throttler.suggestion_thumbnails.count";
+const char kSnippetThumbnailsInteractiveRequestCount[] =
+ "ntp.request_throttler.suggestion_thumbnails.interactive_count";
+const char kSnippetThumbnailsRequestsDay[] =
+ "ntp.request_throttler.suggestion_thumbnails.day";
} // namespace prefs
} // namespace ntp_snippets

Powered by Google App Engine
This is Rietveld 408576698