| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |