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

Unified Diff: components/ntp_snippets/user_classifier.cc

Issue 2744253004: NTP: clang-format (Closed)
Patch Set: 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 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;
}

Powered by Google App Engine
This is Rietveld 408576698