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

Unified Diff: base/metrics/histogram_base.cc

Issue 167343002: Make code generated for histogram macros more compact. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 10 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
« base/metrics/histogram.h ('K') | « base/metrics/histogram_base.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/metrics/histogram_base.cc
===================================================================
--- base/metrics/histogram_base.cc (revision 251312)
+++ base/metrics/histogram_base.cc (working copy)
@@ -20,7 +20,7 @@
namespace base {
std::string HistogramTypeToString(HistogramType type) {
- switch(type) {
+ switch (type) {
case HISTOGRAM:
return "HISTOGRAM";
case LINEAR_HISTOGRAM:
@@ -66,6 +66,10 @@
HistogramBase::~HistogramBase() {}
+void HistogramBase::CheckName(const StringPiece& name) const {
+ DCHECK_EQ(histogram_name(), name);
+}
+
void HistogramBase::SetFlags(int32 flags) {
flags_ |= flags;
}
« base/metrics/histogram.h ('K') | « base/metrics/histogram_base.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698