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

Unified Diff: third_party/WebKit/Source/platform/Histogram.cpp

Issue 2886943003: [Offline Pages] Adding missing image/CSS detection in FrameSerializer. (Closed)
Patch Set: finally fixed. Created 3 years, 6 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: third_party/WebKit/Source/platform/Histogram.cpp
diff --git a/third_party/WebKit/Source/platform/Histogram.cpp b/third_party/WebKit/Source/platform/Histogram.cpp
index cb8711624df40e6ff602f1d2eb34629530ac3fba..48997ee50917e82786bd1fd86eb50eb5f38c042f 100644
--- a/third_party/WebKit/Source/platform/Histogram.cpp
+++ b/third_party/WebKit/Source/platform/Histogram.cpp
@@ -49,4 +49,15 @@ void SparseHistogram::Sample(base::HistogramBase::Sample sample) {
histogram_->Add(sample);
}
+LinearHistogram::LinearHistogram(const char* name,
+ base::HistogramBase::Sample min,
+ base::HistogramBase::Sample max,
+ int32_t bucket_count)
+ : CustomCountHistogram(base::LinearHistogram::FactoryGet(
+ name,
+ min,
+ max,
+ bucket_count,
+ base::HistogramBase::kUmaTargetedHistogramFlag)) {}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/Histogram.h ('k') | third_party/WebKit/Source/web/WebFrameSerializer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698