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

Unified Diff: components/ntp_snippets/user_classifier.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/user_classifier.cc
diff --git a/components/ntp_snippets/user_classifier.cc b/components/ntp_snippets/user_classifier.cc
index db91d804792f7820d3308d286a9f8da28374452d..92b0312de491dbd848919aeeeb62298b9d35405c 100644
--- a/components/ntp_snippets/user_classifier.cc
+++ b/components/ntp_snippets/user_classifier.cc
@@ -24,8 +24,7 @@ namespace {
// The discount rate for computing the discounted-average metrics. Must be
// strictly larger than 0 and strictly smaller than 1!
const double kDiscountRatePerDay = 0.25;
-const char kDiscountRatePerDayParam[] =
- "user_classifier_discount_rate_per_day";
+const char kDiscountRatePerDayParam[] = "user_classifier_discount_rate_per_day";
// Never consider any larger interval than this (so that extreme situations such
// as losing your phone or going for a long offline vacation do not skew the
@@ -331,7 +330,7 @@ double UserClassifier::UpdateMetricOnEvent(Metric metric) {
// Add 1 to the discounted metric as the event has happened right now.
double new_metric_value =
1 + DiscountMetric(metric_value, hours_since_last_time,
- discount_rate_per_hour_);
+ discount_rate_per_hour_);
SetMetricValue(metric, new_metric_value);
return new_metric_value;
}
« no previous file with comments | « components/ntp_snippets/sessions/foreign_sessions_suggestions_provider.cc ('k') | components/ntp_tiles/popular_sites_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698