| Index: base/metrics/histogram_snapshot_manager.cc
|
| diff --git a/base/metrics/histogram_snapshot_manager.cc b/base/metrics/histogram_snapshot_manager.cc
|
| index cb594bd96d99abccceb48ee0d5d69d620c8277e0..788068f6a6fa66c2a08f4f7b69c4fdcaae0202ad 100644
|
| --- a/base/metrics/histogram_snapshot_manager.cc
|
| +++ b/base/metrics/histogram_snapshot_manager.cc
|
| @@ -25,18 +25,17 @@ HistogramSnapshotManager::~HistogramSnapshotManager() {
|
| STLDeleteValues(&logged_samples_);
|
| }
|
|
|
| -void HistogramSnapshotManager::PrepareDeltas(HistogramBase::Flags flag_to_set,
|
| - bool record_only_uma) {
|
| +void HistogramSnapshotManager::PrepareDeltas(
|
| + HistogramBase::Flags flag_to_set,
|
| + HistogramBase::Flags flag_filter_to_record) {
|
| StatisticsRecorder::Histograms histograms;
|
| StatisticsRecorder::GetHistograms(&histograms);
|
| for (StatisticsRecorder::Histograms::const_iterator it = histograms.begin();
|
| histograms.end() != it;
|
| ++it) {
|
| (*it)->SetFlags(flag_to_set);
|
| - if (record_only_uma &&
|
| - 0 == ((*it)->flags() & Histogram::kUmaTargetedHistogramFlag))
|
| - continue;
|
| - PrepareDelta(**it);
|
| + if (((*it)->flags() & flag_filter_to_record) == flag_filter_to_record)
|
| + PrepareDelta(**it);
|
| }
|
| }
|
|
|
|
|