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

Unified Diff: Source/core/html/HTMLLinkElement.cpp

Issue 349263002: Adds AL logging for Blink core events. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 6 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
Index: Source/core/html/HTMLLinkElement.cpp
diff --git a/Source/core/html/HTMLLinkElement.cpp b/Source/core/html/HTMLLinkElement.cpp
index f36b9200c1892400d20bda6a7233268153bde053..7c1094409a8ce7d2d8ff8285eca9d3d254dc6171 100644
--- a/Source/core/html/HTMLLinkElement.cpp
+++ b/Source/core/html/HTMLLinkElement.cpp
@@ -26,6 +26,7 @@
#include "core/html/HTMLLinkElement.h"
#include "bindings/v8/ScriptEventListener.h"
+#include "bindings/v8/V8DOMActivityLogger.h"
#include "core/HTMLNames.h"
#include "core/css/MediaList.h"
#include "core/css/MediaQueryEvaluator.h"
@@ -260,6 +261,16 @@ void HTMLLinkElement::enableIfExitTransitionStyle()
Node::InsertionNotificationRequest HTMLLinkElement::insertedInto(ContainerNode* insertionPoint)
{
+ if (insertionPoint->isInTreeScope()) {
+ V8DOMActivityLogger* activityLogger = V8DOMActivityLogger::currentActivityLoggerIfIsolatedWorld();
+ if (activityLogger) {
+ Vector<String> argv;
+ argv.append("link");
+ argv.append(fastGetAttribute(relAttr));
+ argv.append(fastGetAttribute(hrefAttr));
+ activityLogger->logEvent("blinkAddElement", 3, argv.data());
+ }
+ }
HTMLElement::insertedInto(insertionPoint);
if (!insertionPoint->inDocument())
return InsertionDone;

Powered by Google App Engine
This is Rietveld 408576698