| Index: third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
|
| diff --git a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
|
| index b487d1e96599da0eeac615cfd9833e3512203c68..52ee4f1a7678400ca8010c421f8f26f3ead63d81 100644
|
| --- a/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
|
| +++ b/third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp
|
| @@ -63,6 +63,7 @@
|
| #include "modules/serviceworkers/NavigatorServiceWorker.h"
|
| #include "modules/storage/DOMWindowStorageController.h"
|
| #include "modules/vr/NavigatorVRDevice.h"
|
| +#include "platform/Histogram.h"
|
| #include "platform/MIMETypeRegistry.h"
|
| #include "platform/RuntimeEnabledFeatures.h"
|
| #include "platform/UserGestureIndicator.h"
|
| @@ -497,7 +498,8 @@ void FrameLoaderClientImpl::dispatchDidCommitLoad(HistoryItem* item, HistoryComm
|
| // Save some histogram data so we can compute the average memory used per
|
| // page load of the glyphs.
|
| // TODO(esprehn): Is this ancient uma actually useful?
|
| - Platform::current()->histogramCustomCounts("Memory.GlyphPagesPerLoad", GlyphPageTreeNode::treeGlyphPageCount(), 1, 10000, 50);
|
| + DEFINE_STATIC_LOCAL(CustomCountHistogram, gyphsPagesPerLoadHistogram, ("Memory.GlyphPagesPerLoad", 1, 10000, 50));
|
| + gyphsPagesPerLoadHistogram.count(GlyphPageTreeNode::treeGlyphPageCount());
|
|
|
| if (m_webFrame->client())
|
| m_webFrame->client()->didCommitProvisionalLoad(m_webFrame, WebHistoryItem(item), static_cast<WebHistoryCommitType>(commitType));
|
|
|