| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/prefs/tracked/tracked_preference_helper.h" | 5 #include "components/user_prefs/tracked/tracked_preference_helper.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
| 9 | 9 |
| 10 TrackedPreferenceHelper::TrackedPreferenceHelper( | 10 TrackedPreferenceHelper::TrackedPreferenceHelper( |
| 11 const std::string& pref_path, | 11 const std::string& pref_path, |
| 12 size_t reporting_id, | 12 size_t reporting_id, |
| 13 size_t reporting_ids_count, | 13 size_t reporting_ids_count, |
| 14 PrefHashFilter::EnforcementLevel enforcement_level, | 14 PrefHashFilter::EnforcementLevel enforcement_level, |
| 15 PrefHashFilter::ValueType value_type) | 15 PrefHashFilter::ValueType value_type) |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 // Note: The factory creates and owns the histogram. | 109 // Note: The factory creates and owns the histogram. |
| 110 base::HistogramBase* histogram = | 110 base::HistogramBase* histogram = |
| 111 base::LinearHistogram::FactoryGet( | 111 base::LinearHistogram::FactoryGet( |
| 112 "Settings.TrackedSplitPreferenceChanged." + pref_path_, | 112 "Settings.TrackedSplitPreferenceChanged." + pref_path_, |
| 113 1, | 113 1, |
| 114 100, // Allow counts up to 100. | 114 100, // Allow counts up to 100. |
| 115 101, | 115 101, |
| 116 base::HistogramBase::kUmaTargetedHistogramFlag); | 116 base::HistogramBase::kUmaTargetedHistogramFlag); |
| 117 histogram->Add(count); | 117 histogram->Add(count); |
| 118 } | 118 } |
| OLD | NEW |