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

Unified Diff: third_party/webrtc_overrides/init_webrtc.cc

Issue 2545703002: WebRTC overrides: Add linear histogram type w/ bucket count parameter (Closed)
Patch Set: Rename to HistogramFactoryGetCountsLinear Created 4 years 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/webrtc_overrides/init_webrtc.cc
diff --git a/third_party/webrtc_overrides/init_webrtc.cc b/third_party/webrtc_overrides/init_webrtc.cc
index 42a5df2734896f3fedfe96c6987c39660b848623..f51455ec7b71bf0d23eb1ff88deabf8415d35a06 100644
--- a/third_party/webrtc_overrides/init_webrtc.cc
+++ b/third_party/webrtc_overrides/init_webrtc.cc
@@ -51,6 +51,13 @@ Histogram* HistogramFactoryGetCounts(
base::HistogramBase::kUmaTargetedHistogramFlag));
}
+Histogram* HistogramFactoryGetCountsLinear(
+ const std::string& name, int min, int max, int bucket_count) {
+ return reinterpret_cast<Histogram*>(
+ base::LinearHistogram::FactoryGet(name, min, max, bucket_count,
+ base::HistogramBase::kUmaTargetedHistogramFlag));
+}
+
Histogram* HistogramFactoryGetEnumeration(
const std::string& name, int boundary) {
return reinterpret_cast<Histogram*>(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698