| OLD | NEW |
| 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 "chrome/browser/interstitials/security_interstitial_metrics_helper.h" | 5 #include "chrome/browser/interstitials/security_interstitial_metrics_helper.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
| 10 #include "chrome/browser/browser_process.h" | 10 #include "chrome/browser/browser_process.h" |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 144 sampling_event_->set_has_viewed_learn_more(true); | 144 sampling_event_->set_has_viewed_learn_more(true); |
| 145 break; | 145 break; |
| 146 case SHOW_ADVANCED: | 146 case SHOW_ADVANCED: |
| 147 sampling_event_->set_has_viewed_details(true); | 147 sampling_event_->set_has_viewed_details(true); |
| 148 break; | 148 break; |
| 149 case SHOW_PRIVACY_POLICY: | 149 case SHOW_PRIVACY_POLICY: |
| 150 case SHOW_DIAGNOSTIC: | 150 case SHOW_DIAGNOSTIC: |
| 151 case RELOAD: | 151 case RELOAD: |
| 152 case OPEN_TIME_SETTINGS: | 152 case OPEN_TIME_SETTINGS: |
| 153 case TOTAL_VISITS: | 153 case TOTAL_VISITS: |
| 154 case SET_EXTENDED_REPORTING_ENABLED: |
| 155 case SET_EXTENDED_REPORTING_DISABLED: |
| 156 case EXTENDED_REPORTING_IS_ENABLED: |
| 154 case MAX_INTERACTION: | 157 case MAX_INTERACTION: |
| 155 break; | 158 break; |
| 156 } | 159 } |
| 157 #endif | 160 #endif |
| 158 } | 161 } |
| 159 | 162 |
| 160 void SecurityInterstitialMetricsHelper::OnGotHistoryCount( | 163 void SecurityInterstitialMetricsHelper::OnGotHistoryCount( |
| 161 bool success, | 164 bool success, |
| 162 int num_visits, | 165 int num_visits, |
| 163 base::Time first_visit) { | 166 base::Time first_visit) { |
| 164 if (success) | 167 if (success) |
| 165 num_visits_ = num_visits; | 168 num_visits_ = num_visits; |
| 166 } | 169 } |
| OLD | NEW |