| 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 "chrome/browser/safe_browsing/srt_field_trial_win.h" | 5 #include "chrome/browser/safe_browsing/chrome_cleaner/srt_field_trial_win.h" |
| 6 | 6 |
| 7 #include "base/metrics/field_trial.h" | 7 #include "base/metrics/field_trial.h" |
| 8 #include "base/metrics/histogram_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "components/variations/variations_associated_data.h" | 10 #include "components/variations/variations_associated_data.h" |
| 11 | 11 |
| 12 namespace { | 12 namespace { |
| 13 | 13 |
| 14 // Field trial strings. | 14 // Field trial strings. |
| 15 const char kSRTPromptTrial[] = "SRTPromptFieldTrial"; | 15 const char kSRTPromptTrial[] = "SRTPromptFieldTrial"; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 return variations::GetVariationParamValue(kSRTPromptTrial, | 64 return variations::GetVariationParamValue(kSRTPromptTrial, |
| 65 kSRTPromptSeedParam); | 65 kSRTPromptSeedParam); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void RecordSRTPromptHistogram(SRTPromptHistogramValue value) { | 68 void RecordSRTPromptHistogram(SRTPromptHistogramValue value) { |
| 69 UMA_HISTOGRAM_ENUMERATION("SoftwareReporter.PromptUsage", value, | 69 UMA_HISTOGRAM_ENUMERATION("SoftwareReporter.PromptUsage", value, |
| 70 SRT_PROMPT_MAX); | 70 SRT_PROMPT_MAX); |
| 71 } | 71 } |
| 72 | 72 |
| 73 } // namespace safe_browsing | 73 } // namespace safe_browsing |
| OLD | NEW |