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

Side by Side Diff: chrome/browser/net/async_dns_field_trial.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/net/async_dns_field_trial.h" 5 #include "chrome/browser/net/async_dns_field_trial.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 "build/build_config.h" 10 #include "build/build_config.h"
11 11
12 namespace chrome_browser_net { 12 namespace chrome_browser_net {
13 13
14 namespace { 14 namespace {
15 15
16 // Source of the default value of the async DNS pref; used in histograms. 16 // Source of the default value of the async DNS pref; used in histograms.
17 enum PrefDefaultSource { 17 enum PrefDefaultSource {
18 PLATFORM, 18 PLATFORM,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 HistogramPrefSource(EXTENSION_PREF, enabled); 98 HistogramPrefSource(EXTENSION_PREF, enabled);
99 else if (pref->IsUserControlled()) 99 else if (pref->IsUserControlled())
100 HistogramPrefSource(USER_PREF, enabled); 100 HistogramPrefSource(USER_PREF, enabled);
101 else if (pref->IsDefaultValue()) 101 else if (pref->IsDefaultValue())
102 HistogramPrefSource(DEFAULT_PREF, enabled); 102 HistogramPrefSource(DEFAULT_PREF, enabled);
103 else 103 else
104 HistogramPrefSource(UNKNOWN_PREF, enabled); 104 HistogramPrefSource(UNKNOWN_PREF, enabled);
105 } 105 }
106 106
107 } // namespace chrome_browser_net 107 } // namespace chrome_browser_net
OLDNEW
« no previous file with comments | « chrome/browser/mod_pagespeed/mod_pagespeed_metrics_unittest.cc ('k') | chrome/browser/net/chrome_network_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698