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

Unified Diff: base/metrics/sparse_histogram.cc

Issue 2382503002: Cleanup histograms from message loop, as well as kHexRangePrintingFlag. (Closed)
Patch Set: make flag comment nicer Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/metrics/histogram_base.cc ('k') | chrome/app/chrome_main_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/sparse_histogram.cc
diff --git a/base/metrics/sparse_histogram.cc b/base/metrics/sparse_histogram.cc
index deba570059427d60493a24f3725657e13e259ce3..a8dfbeb757bcdb28d9b014436efe779bcdbc6be3 100644
--- a/base/metrics/sparse_histogram.cc
+++ b/base/metrics/sparse_histogram.cc
@@ -282,8 +282,8 @@ void SparseHistogram::WriteAsciiHeader(const Count total_count,
"Histogram: %s recorded %d samples",
histogram_name().c_str(),
total_count);
- if (flags() & ~kHexRangePrintingFlag)
- StringAppendF(output, " (flags = 0x%x)", flags() & ~kHexRangePrintingFlag);
+ if (flags())
+ StringAppendF(output, " (flags = 0x%x)", flags());
}
} // namespace base
« no previous file with comments | « base/metrics/histogram_base.cc ('k') | chrome/app/chrome_main_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698