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

Unified Diff: chrome/browser/prefs/browser_prefs.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 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
« no previous file with comments | « no previous file | components/ntp_snippets.gypi » ('j') | components/ntp_snippets/request_counter.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/prefs/browser_prefs.cc
diff --git a/chrome/browser/prefs/browser_prefs.cc b/chrome/browser/prefs/browser_prefs.cc
index c62343a7f64273890169048d4d1eda0d9a8dfe7f..b1d5ead6bffdeadfb4f23d504232e82bfa69b859 100644
--- a/chrome/browser/prefs/browser_prefs.cc
+++ b/chrome/browser/prefs/browser_prefs.cc
@@ -79,6 +79,7 @@
#include "components/metrics/metrics_service.h"
#include "components/network_time/network_time_tracker.h"
#include "components/ntp_snippets/ntp_snippets_service.h"
+#include "components/ntp_snippets/request_counter.h"
#include "components/omnibox/browser/zero_suggest_provider.h"
#include "components/password_manager/core/browser/password_bubble_experiment.h"
#include "components/password_manager/core/browser/password_manager.h"
@@ -461,6 +462,7 @@ void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
MediaStreamDevicesController::RegisterProfilePrefs(registry);
NetPrefObserver::RegisterProfilePrefs(registry);
ntp_snippets::NTPSnippetsService::RegisterProfilePrefs(registry);
+ ntp_snippets::RequestCounter::RegisterProfilePrefs(registry);
Marc Treib 2016/07/20 12:58:27 Hm, you could call this from NTPSnippetsService::R
jkrcal 2016/07/20 14:20:17 I've though about it. I do not think that the Requ
Marc Treib 2016/07/20 15:13:57 Acknowledged.
password_bubble_experiment::RegisterPrefs(registry);
password_manager::PasswordManager::RegisterProfilePrefs(registry);
PrefProxyConfigTrackerImpl::RegisterProfilePrefs(registry);
« no previous file with comments | « no previous file | components/ntp_snippets.gypi » ('j') | components/ntp_snippets/request_counter.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698