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

Unified Diff: base/metrics/histogram_base.cc

Issue 1002103004: NOT FOR REVIEW - Slow Reports Reference Implementation Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: First pass stringification. Created 5 years, 8 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
Index: base/metrics/histogram_base.cc
diff --git a/base/metrics/histogram_base.cc b/base/metrics/histogram_base.cc
index f09c84e20d0968262c8ec338c8691d9863b3b0d6..3f64c4785c34d8a14f94d37bad0668fb2a498a13 100644
--- a/base/metrics/histogram_base.cc
+++ b/base/metrics/histogram_base.cc
@@ -86,6 +86,10 @@ void HistogramBase::AddBoolean(bool value) {
Add(value ? 1 : 0);
}
+void HistogramBase::SetCallback(const HistogramBase::ModifiedCallback& cb) {
+ callback_ = cb;
+}
+
bool HistogramBase::SerializeInfo(Pickle* pickle) const {
if (!pickle->WriteInt(GetHistogramType()))
return false;

Powered by Google App Engine
This is Rietveld 408576698