| 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;
|
| }
|
|
|