| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |