| Index: third_party/WebKit/Source/core/dom/Document.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/Document.cpp b/third_party/WebKit/Source/core/dom/Document.cpp
|
| index c41a910b05830dd6ac1c157ea7bd8c0aae5bc6b7..4d3879f0bf462007b32696b6634d67a7c6243500 100644
|
| --- a/third_party/WebKit/Source/core/dom/Document.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/Document.cpp
|
| @@ -199,6 +199,7 @@
|
| #include "core/xml/parser/XMLDocumentParser.h"
|
| #include "platform/DateComponents.h"
|
| #include "platform/EventDispatchForbiddenScope.h"
|
| +#include "platform/Histogram.h"
|
| #include "platform/Language.h"
|
| #include "platform/LengthFunctions.h"
|
| #include "platform/Logging.h"
|
| @@ -4472,7 +4473,9 @@ bool Document::execCommand(const String& commandName, bool, const String& value,
|
| EventQueueScope eventQueueScope;
|
| Editor::tidyUpHTMLStructure(*this);
|
| Editor::Command editorCommand = command(this, commandName);
|
| - Platform::current()->histogramSparse("WebCore.Document.execCommand", editorCommand.idForHistogram());
|
| +
|
| + DEFINE_STATIC_LOCAL(SparseHistogram, editorCommandHistogram, ("WebCore.Document.execCommand"));
|
| + editorCommandHistogram.sample(editorCommand.idForHistogram());
|
| return editorCommand.execute(value);
|
| }
|
|
|
|
|