Commit 74ca0335 authored by Hayato Ito's avatar Hayato Ito Committed by Commit Bot

Add UMA for HTMLTemplateElement usage

Add UMA for any HTMLTemplateElement usage.
We might want to add other UMA for different usages,
as https://crbug.com/922719#c1 requested, later.

Bug: 922719
Change-Id: Ib5f3c1a1bc573fb290d52a73ecbca38a5b86b8fa
Reviewed-on: https://chromium-review.googlesource.com/c/1436728Reviewed-by: default avatarKent Tamura <tkent@chromium.org>
Commit-Queue: Hayato Ito <hayato@chromium.org>
Cr-Commit-Position: refs/heads/master@{#626452}
parent e6447f02
...@@ -2201,6 +2201,7 @@ enum WebFeature { ...@@ -2201,6 +2201,7 @@ enum WebFeature {
kV8RTCQuicStream_Reset_Method = 2766, kV8RTCQuicStream_Reset_Method = 2766,
kV8RTCQuicStream_WaitForWriteBufferedAmountBelow_Method = 2767, kV8RTCQuicStream_WaitForWriteBufferedAmountBelow_Method = 2767,
kV8RTCQuicStream_WaitForReadable_Method = 2768, kV8RTCQuicStream_WaitForReadable_Method = 2768,
kHTMLTemplateElement = 2769,
// Add new features immediately above this line. Don't change assigned // Add new features immediately above this line. Don't change assigned
// numbers of any item, and don't reuse removed slots. // numbers of any item, and don't reuse removed slots.
......
...@@ -33,13 +33,16 @@ ...@@ -33,13 +33,16 @@
#include "third_party/blink/renderer/core/dom/document.h" #include "third_party/blink/renderer/core/dom/document.h"
#include "third_party/blink/renderer/core/dom/document_fragment.h" #include "third_party/blink/renderer/core/dom/document_fragment.h"
#include "third_party/blink/renderer/core/dom/template_content_document_fragment.h" #include "third_party/blink/renderer/core/dom/template_content_document_fragment.h"
#include "third_party/blink/renderer/core/frame/use_counter.h"
namespace blink { namespace blink {
using namespace html_names; using namespace html_names;
inline HTMLTemplateElement::HTMLTemplateElement(Document& document) inline HTMLTemplateElement::HTMLTemplateElement(Document& document)
: HTMLElement(kTemplateTag, document) {} : HTMLElement(kTemplateTag, document) {
UseCounter::Count(document, WebFeature::kHTMLTemplateElement);
}
DEFINE_NODE_FACTORY(HTMLTemplateElement) DEFINE_NODE_FACTORY(HTMLTemplateElement)
......
...@@ -21422,6 +21422,7 @@ Called by update_net_error_codes.py.--> ...@@ -21422,6 +21422,7 @@ Called by update_net_error_codes.py.-->
<int value="2767" <int value="2767"
label="V8RTCQuicStream_WaitForWriteBufferedAmountBelow_Method"/> label="V8RTCQuicStream_WaitForWriteBufferedAmountBelow_Method"/>
<int value="2768" label="V8RTCQuicStream_WaitForReadable_Method"/> <int value="2768" label="V8RTCQuicStream_WaitForReadable_Method"/>
<int value="2769" label="HTMLTemplateElement"/>
</enum> </enum>
<enum name="FeaturePolicyFeature"> <enum name="FeaturePolicyFeature">
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment