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

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

Issue 2299993004: Migrate chrome/browser files to histogram_macros.h includes. (Closed)
Patch Set: Created 4 years, 3 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/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.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";
16 const char kSRTCanaryGroup[] = "SRTCanary"; 16 const char kSRTCanaryGroup[] = "SRTCanary";
17 const char kSRTPromptOffGroup[] = "Off"; 17 const char kSRTPromptOffGroup[] = "Off";
18 const char kSRTPromptSeedParam[] = "Seed"; 18 const char kSRTPromptSeedParam[] = "Seed";
(...skipping 45 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
« no previous file with comments | « chrome/browser/safe_browsing/srt_fetcher_win.cc ('k') | chrome/browser/search/hotword_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698