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

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

Issue 1652983005: Remove Enumeration Histograms from the Blink Platform API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_blink_histograms_5a
Patch Set: Fix misplaced bracket on android 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 89890bfdb72cef4a6605cb263d73c184ede15341..1b90a32d9c6d941776c626ce33abfc5d01e668cf 100644
--- a/third_party/WebKit/Source/core/css/FontFaceSet.cpp
+++ b/third_party/WebKit/Source/core/css/FontFaceSet.cpp
@@ -41,7 +41,6 @@
#include "core/frame/LocalFrame.h"
#include "core/style/StyleInheritedData.h"
#include "platform/Histogram.h"
-#include "public/platform/Platform.h"
namespace blink {
@@ -484,7 +483,8 @@ void FontFaceSet::FontLoadHistogram::record()
webFontsInPageHistogram.count(m_count);
}
if (m_status == HadBlankText || m_status == DidNotHaveBlankText) {
- Platform::current()->histogramEnumeration("WebFont.HadBlankText", m_status == HadBlankText ? 1 : 0, 2);
+ DEFINE_THREAD_SAFE_STATIC_LOCAL(EnumerationHistogram, hadBlankTextHistogram, new EnumerationHistogram("WebFont.HadBlankText", 2));
+ hadBlankTextHistogram.count(m_status == HadBlankText ? 1 : 0);
m_status = Reported;
}
}

Powered by Google App Engine
This is Rietveld 408576698