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

Side by Side Diff: chrome/browser/safe_browsing/chrome_cleaner/srt_field_trial_win.cc

Issue 2846333003: Chrome cleaner: move Chrome Cleaner files to their own directory (Closed)
Patch Set: Created 3 years, 7 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
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 "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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698