Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
|
Alexei Svitkine (slow)
2015/08/24 21:27:00
Nit: No (c) for new comments.
amohammadkhan
2015/08/24 22:52:40
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "sync/util/data_type_histogram.h" | |
| 6 | |
| 7 #include <string> | |
|
Alexei Svitkine (slow)
2015/08/24 21:27:00
This include should be in the header.
amohammadkhan
2015/08/24 22:52:40
Done.
| |
| 8 | |
| 9 #include "base/metrics/sparse_histogram.h" | |
| 10 | |
| 11 void SyncRecordDatatypeBin(std::string name, int sample, int value) { | |
| 12 base::HistogramBase* histogram = base::SparseHistogram::FactoryGet( | |
|
Alexei Svitkine (slow)
2015/08/24 21:27:00
This is indented too much.
amohammadkhan
2015/08/24 22:52:40
Done.
| |
| 13 name, base::HistogramBase::kUmaTargetedHistogramFlag); | |
| 14 histogram->AddCount(sample, value); | |
| 15 } | |
| OLD | NEW |