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

Unified Diff: third_party/WebKit/Source/core/css/FontFaceSet.cpp

Issue 1659053002: Remove custom counts histogram from the blink API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/core/css/FontFaceSet.cpp
diff --git a/third_party/WebKit/Source/core/css/FontFaceSet.cpp b/third_party/WebKit/Source/core/css/FontFaceSet.cpp
index 7b435591e68a841519c2bf7780fbeeffc6b40d14..89890bfdb72cef4a6605cb263d73c184ede15341 100644
--- a/third_party/WebKit/Source/core/css/FontFaceSet.cpp
+++ b/third_party/WebKit/Source/core/css/FontFaceSet.cpp
@@ -40,6 +40,7 @@
#include "core/frame/FrameView.h"
#include "core/frame/LocalFrame.h"
#include "core/style/StyleInheritedData.h"
+#include "platform/Histogram.h"
#include "public/platform/Platform.h"
namespace blink {
@@ -479,7 +480,8 @@ void FontFaceSet::FontLoadHistogram::record()
{
if (!m_recorded) {
m_recorded = true;
- Platform::current()->histogramCustomCounts("WebFont.WebFontsInPage", m_count, 1, 100, 50);
+ DEFINE_THREAD_SAFE_STATIC_LOCAL(CustomCountHistogram, webFontsInPageHistogram, new CustomCountHistogram("WebFont.WebFontsInPage", 1, 100, 50));
esprehn 2016/02/04 23:25:23 FontFaceSet is main thread only today, someday it
+ webFontsInPageHistogram.count(m_count);
}
if (m_status == HadBlankText || m_status == DidNotHaveBlankText) {
Platform::current()->histogramEnumeration("WebFont.HadBlankText", m_status == HadBlankText ? 1 : 0, 2);

Powered by Google App Engine
This is Rietveld 408576698