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

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

Issue 1997153002: libchrome: Several upstreamable fixes from libchrome Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Addressed feedback Created 4 years, 7 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 {
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 meta_->sum += diff; 140 meta_->sum += diff;
141 #endif 141 #endif
142 } 142 }
143 143
144 void HistogramSamples::IncreaseRedundantCount(HistogramBase::Count diff) { 144 void HistogramSamples::IncreaseRedundantCount(HistogramBase::Count diff) {
145 subtle::NoBarrier_AtomicIncrement(&meta_->redundant_count, diff); 145 subtle::NoBarrier_AtomicIncrement(&meta_->redundant_count, diff);
146 } 146 }
147 147
148 SampleCountIterator::~SampleCountIterator() {} 148 SampleCountIterator::~SampleCountIterator() {}
149 149
150 bool SampleCountIterator::GetBucketIndex(size_t* index) const { 150 bool SampleCountIterator::GetBucketIndex(size_t* /*index*/) const {
151 DCHECK(!Done()); 151 DCHECK(!Done());
152 return false; 152 return false;
153 } 153 }
154 154
155 } // namespace base 155 } // namespace base
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698