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

Unified Diff: Source/core/html/track/TextTrackCue.h

Issue 47453002: Add UseCounter for TextTrackCue constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | Source/core/page/UseCounter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/track/TextTrackCue.h
diff --git a/Source/core/html/track/TextTrackCue.h b/Source/core/html/track/TextTrackCue.h
index 6eb5b490aea4e9a17df444f23416e898a5aee9e5..7fd5b9de776b7a35ef6ce218019f76ffd42753be 100644
--- a/Source/core/html/track/TextTrackCue.h
+++ b/Source/core/html/track/TextTrackCue.h
@@ -35,6 +35,7 @@
#include "bindings/v8/ScriptWrappable.h"
#include "core/events/EventTarget.h"
#include "core/html/HTMLDivElement.h"
+#include "core/page/UseCounter.h"
#include "wtf/RefCounted.h"
namespace WebCore {
@@ -75,6 +76,7 @@ class TextTrackCue : public RefCounted<TextTrackCue>, public ScriptWrappable, pu
public:
static PassRefPtr<TextTrackCue> create(Document& document, double start, double end, const String& content)
{
+ UseCounter::count(document, UseCounter::TextTrackCueConstructor);
return adoptRef(new TextTrackCue(document, start, end, content));
}
« no previous file with comments | « no previous file | Source/core/page/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698