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

Unified Diff: components/ntp_snippets/remote/request_throttler.cc

Issue 2520853002: [NTP] Cleanup: add brackets in components/ntp_snippets. [2/2] (Closed)
Patch Set: "else if". Created 4 years, 1 month 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/remote/request_throttler.cc
diff --git a/components/ntp_snippets/remote/request_throttler.cc b/components/ntp_snippets/remote/request_throttler.cc
index f1b06bd428fea5b39b3ccb6539346828e60f9fe4..ae78103892b5deb4e65ed7d503353c4ec60452ab 100644
--- a/components/ntp_snippets/remote/request_throttler.cc
+++ b/components/ntp_snippets/remote/request_throttler.cc
@@ -128,8 +128,9 @@ void RequestThrottler::RegisterProfilePrefs(PrefRegistrySimple* registry) {
keys_to_register.insert(info.interactive_count_pref);
}
- for (const std::string& key : keys_to_register)
+ for (const std::string& key : keys_to_register) {
registry->RegisterIntegerPref(key, 0);
+ }
}
bool RequestThrottler::DemandQuotaForRequest(bool interactive_request) {

Powered by Google App Engine
This is Rietveld 408576698