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

Side by Side Diff: base/metrics/histogram_samples.cc

Issue 611153004: replace OVERRIDE and FINAL with override and final in base/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: CC_ -> BASE_ Created 6 years, 2 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 (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 "base/metrics/histogram_samples.h" 5 #include "base/metrics/histogram_samples.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/pickle.h" 8 #include "base/pickle.h"
9 9
10 namespace base { 10 namespace base {
11 11
12 namespace { 12 namespace {
13 13
14 class SampleCountPickleIterator : public SampleCountIterator { 14 class SampleCountPickleIterator : public SampleCountIterator {
15 public: 15 public:
16 explicit SampleCountPickleIterator(PickleIterator* iter); 16 explicit SampleCountPickleIterator(PickleIterator* iter);
17 17
18 virtual bool Done() const OVERRIDE; 18 virtual bool Done() const override;
19 virtual void Next() OVERRIDE; 19 virtual void Next() override;
20 virtual void Get(HistogramBase::Sample* min, 20 virtual void Get(HistogramBase::Sample* min,
21 HistogramBase::Sample* max, 21 HistogramBase::Sample* max,
22 HistogramBase::Count* count) const OVERRIDE; 22 HistogramBase::Count* count) const override;
23 private: 23 private:
24 PickleIterator* const iter_; 24 PickleIterator* const iter_;
25 25
26 HistogramBase::Sample min_; 26 HistogramBase::Sample min_;
27 HistogramBase::Sample max_; 27 HistogramBase::Sample max_;
28 HistogramBase::Count count_; 28 HistogramBase::Count count_;
29 bool is_done_; 29 bool is_done_;
30 }; 30 };
31 31
32 SampleCountPickleIterator::SampleCountPickleIterator(PickleIterator* iter) 32 SampleCountPickleIterator::SampleCountPickleIterator(PickleIterator* iter)
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 128 }
129 129
130 SampleCountIterator::~SampleCountIterator() {} 130 SampleCountIterator::~SampleCountIterator() {}
131 131
132 bool SampleCountIterator::GetBucketIndex(size_t* index) const { 132 bool SampleCountIterator::GetBucketIndex(size_t* index) const {
133 DCHECK(!Done()); 133 DCHECK(!Done());
134 return false; 134 return false;
135 } 135 }
136 136
137 } // namespace base 137 } // namespace base
OLDNEW
« no previous file with comments | « base/metrics/histogram_delta_serialization.h ('k') | base/metrics/histogram_snapshot_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698