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

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

Issue 614103004: replace 'virtual ... OVERRIDE' with '... override' (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: process 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 bool Done() const override;
19 virtual void Next() OVERRIDE; 19 void Next() override;
20 virtual void Get(HistogramBase::Sample* min, 20 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
23 private: 24 private:
24 PickleIterator* const iter_; 25 PickleIterator* const iter_;
25 26
26 HistogramBase::Sample min_; 27 HistogramBase::Sample min_;
27 HistogramBase::Sample max_; 28 HistogramBase::Sample max_;
28 HistogramBase::Count count_; 29 HistogramBase::Count count_;
29 bool is_done_; 30 bool is_done_;
30 }; 31 };
31 32
32 SampleCountPickleIterator::SampleCountPickleIterator(PickleIterator* iter) 33 SampleCountPickleIterator::SampleCountPickleIterator(PickleIterator* iter)
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 } 129 }
129 130
130 SampleCountIterator::~SampleCountIterator() {} 131 SampleCountIterator::~SampleCountIterator() {}
131 132
132 bool SampleCountIterator::GetBucketIndex(size_t* index) const { 133 bool SampleCountIterator::GetBucketIndex(size_t* index) const {
133 DCHECK(!Done()); 134 DCHECK(!Done());
134 return false; 135 return false;
135 } 136 }
136 137
137 } // namespace base 138 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698