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

Side by Side Diff: components/user_prefs/tracked/tracked_preference_helper.cc

Issue 1227973003: Componentize //chrome/browser/prefs/tracked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 4 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 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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698