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

Side by Side Diff: net/disk_cache/stats_histogram.cc

Issue 4364001: Allow histograms in cache stats.cc to bypass corruption checks... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | Annotate | Revision Log
« base/metrics/histogram.cc ('K') | « net/disk_cache/stats_histogram.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2008 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 "net/disk_cache/stats_histogram.h" 5 #include "net/disk_cache/stats_histogram.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/disk_cache/stats.h" 8 #include "net/disk_cache/stats.h"
9 9
10 namespace disk_cache { 10 namespace disk_cache {
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 StatsSamples my_sample; 79 StatsSamples my_sample;
80 stats_->Snapshot(&my_sample); 80 stats_->Snapshot(&my_sample);
81 81
82 *sample = my_sample; 82 *sample = my_sample;
83 83
84 // Only report UMA data once. 84 // Only report UMA data once.
85 StatsHistogram* mutable_me = const_cast<StatsHistogram*>(this); 85 StatsHistogram* mutable_me = const_cast<StatsHistogram*>(this);
86 mutable_me->ClearFlags(kUmaTargetedHistogramFlag); 86 mutable_me->ClearFlags(kUmaTargetedHistogramFlag);
87 } 87 }
88 88
89 Histogram::Inconsistencies StatsHistogram::FindCorruption(
90 const SampleSet& snapshot) const {
91 return NO_INCONSISTENCIES; // This class won't monitor inconsistencies.
92 }
93
94
89 } // namespace disk_cache 95 } // namespace disk_cache
OLDNEW
« base/metrics/histogram.cc ('K') | « net/disk_cache/stats_histogram.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698