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

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

Issue 2449873003: [NTP Snippets] Another round of clang-tidy cleanups (Closed)
Patch Set: rebase Created 4 years, 2 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 8f932ab6341d8172c07d5282f80ba783a27ee609..f1b06bd428fea5b39b3ccb6539346828e60f9fe4 100644
--- a/components/ntp_snippets/remote/request_throttler.cc
+++ b/components/ntp_snippets/remote/request_throttler.cc
@@ -153,7 +153,7 @@ bool RequestThrottler::DemandQuotaForRequest(bool interactive_request) {
void RequestThrottler::ResetCounterIfDayChanged() {
// Get the date, "concatenated" into an int in "YYYYMMDD" format.
- base::Time::Exploded now_exploded;
+ base::Time::Exploded now_exploded{};
base::Time::Now().LocalExplode(&now_exploded);
int now_day = 10000 * now_exploded.year + 100 * now_exploded.month +
now_exploded.day_of_month;
« no previous file with comments | « components/ntp_snippets/remote/ntp_snippets_fetcher.h ('k') | components/translate/core/browser/language_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698