OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/security_interstitials/core/metrics_helper.h" | 5 #include "components/security_interstitials/core/metrics_helper.h" |
6 | 6 |
7 #include <memory> | 7 #include <memory> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 } | 160 } |
161 | 161 |
162 void MetricsHelper::RecordShutdownMetrics() { | 162 void MetricsHelper::RecordShutdownMetrics() { |
163 RecordExtraShutdownMetrics(); | 163 RecordExtraShutdownMetrics(); |
164 } | 164 } |
165 | 165 |
166 int MetricsHelper::NumVisits() { | 166 int MetricsHelper::NumVisits() { |
167 return num_visits_; | 167 return num_visits_; |
168 } | 168 } |
169 | 169 |
| 170 void MetricsHelper::RecordExtraUserDecisionMetrics(Decision decision) {} |
| 171 |
| 172 void MetricsHelper::RecordExtraUserInteractionMetrics(Interaction interaction) { |
| 173 } |
| 174 |
| 175 void MetricsHelper::RecordExtraShutdownMetrics() {} |
| 176 |
170 void MetricsHelper::OnGotHistoryCount(bool success, | 177 void MetricsHelper::OnGotHistoryCount(bool success, |
171 int num_visits, | 178 int num_visits, |
172 base::Time /*first_visit*/) { | 179 base::Time /*first_visit*/) { |
173 if (success) | 180 if (success) |
174 num_visits_ = num_visits; | 181 num_visits_ = num_visits; |
175 } | 182 } |
176 | 183 |
177 } // namespace security_interstitials | 184 } // namespace security_interstitials |
OLD | NEW |