Index: components/ntp_snippets/user_classifier.cc |
diff --git a/components/ntp_snippets/user_classifier.cc b/components/ntp_snippets/user_classifier.cc |
index 8686700fd642acde4262a15d44b80824fb00b8e4..fced9004ee5e02eba9b65ee945117f2a2bf8be69 100644 |
--- a/components/ntp_snippets/user_classifier.cc |
+++ b/components/ntp_snippets/user_classifier.cc |
@@ -23,8 +23,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 |
@@ -328,7 +327,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; |
} |