| Index: third_party/WebKit/Source/core/fetch/FontResource.cpp
|
| diff --git a/third_party/WebKit/Source/core/fetch/FontResource.cpp b/third_party/WebKit/Source/core/fetch/FontResource.cpp
|
| index 48b48aec01f0a53e5bd153584275e917c44ed27e..7bc502ee662e9e39e0c66960f5f801c178ddcbd0 100644
|
| --- a/third_party/WebKit/Source/core/fetch/FontResource.cpp
|
| +++ b/third_party/WebKit/Source/core/fetch/FontResource.cpp
|
| @@ -29,10 +29,10 @@
|
| #include "core/fetch/FetchRequest.h"
|
| #include "core/fetch/ResourceClientWalker.h"
|
| #include "core/fetch/ResourceFetcher.h"
|
| +#include "platform/Histogram.h"
|
| #include "platform/SharedBuffer.h"
|
| #include "platform/fonts/FontCustomPlatformData.h"
|
| #include "platform/fonts/FontPlatformData.h"
|
| -#include "public/platform/Platform.h"
|
| #include "wtf/CurrentTime.h"
|
|
|
| namespace blink {
|
| @@ -66,7 +66,8 @@ static FontPackageFormat packageFormatOf(SharedBuffer* buffer)
|
|
|
| static void recordPackageFormatHistogram(FontPackageFormat format)
|
| {
|
| - Platform::current()->histogramEnumeration("WebFont.PackageFormat", format, PackageFormatEnumMax);
|
| + DEFINE_THREAD_SAFE_STATIC_LOCAL(EnumerationHistogram, packageFormatHistogram, new EnumerationHistogram("WebFont.PackageFormat", PackageFormatEnumMax));
|
| + packageFormatHistogram.count(format);
|
| }
|
|
|
| ResourcePtr<FontResource> FontResource::fetch(FetchRequest& request, ResourceFetcher* fetcher)
|
|
|