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

Side by Side Diff: components/security_interstitials/core/metrics_helper.cc

Issue 2623733002: Componentize SafeBrowsingBlockingPage for WebView use (Closed)
Patch Set: address final comments Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « components/security_interstitials/core/metrics_helper.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/security_interstitials/core/metrics_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698