Index: base/metrics/histogram_base.cc |
=================================================================== |
--- base/metrics/histogram_base.cc (revision 150475) |
+++ base/metrics/histogram_base.cc (working copy) |
@@ -4,13 +4,24 @@ |
#include "base/metrics/histogram_base.h" |
+#include <climits> |
+ |
namespace base { |
const HistogramBase::Sample HistogramBase::kSampleType_MAX = INT_MAX; |
HistogramBase::HistogramBase(const std::string& name) |
- : histogram_name_(name) {} |
+ : histogram_name_(name), |
+ flags_(kNoFlags) {} |
HistogramBase::~HistogramBase() {} |
+void HistogramBase::SetFlags(int32 flags) { |
+ flags_ |= flags; |
+} |
+ |
+void HistogramBase::ClearFlags(int32 flags) { |
+ flags_ &= ~flags; |
+} |
+ |
} // namespace base |