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

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

Issue 2744253004: NTP: clang-format (Closed)
Patch Set: rebase Created 3 years, 9 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/remote/request_throttler.cc
diff --git a/components/ntp_snippets/remote/request_throttler.cc b/components/ntp_snippets/remote/request_throttler.cc
index bba80a2ce1cc304c551000285ea9f81cc6983be5..efe56366ed9df441a1a3e90a81c0c142fc8cd204 100644
--- a/components/ntp_snippets/remote/request_throttler.cc
+++ b/components/ntp_snippets/remote/request_throttler.cc
@@ -41,12 +41,12 @@ const int kUnlimitedQuota = INT_MAX;
} // namespace
struct RequestThrottler::RequestTypeInfo {
- const char* name;
- const char* count_pref;
- const char* interactive_count_pref;
- const char* day_pref;
- const int default_quota;
- const int default_interactive_quota;
+ const char* name;
+ const char* count_pref;
+ const char* interactive_count_pref;
+ const char* day_pref;
+ const int default_quota;
+ const int default_interactive_quota;
};
// When adding a new type here, extend also the "RequestThrottlerTypes"
@@ -82,8 +82,7 @@ RequestThrottler::RequestThrottler(PrefService* pref_service, RequestType type)
base::StringPrintf("quota_%s", GetRequestTypeName()));
if (!base::StringToInt(quota, &quota_)) {
LOG_IF(WARNING, !quota.empty())
- << "Invalid variation parameter for quota for "
- << GetRequestTypeName();
+ << "Invalid variation parameter for quota for " << GetRequestTypeName();
quota_ = type_info_.default_quota;
}

Powered by Google App Engine
This is Rietveld 408576698