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

Unified Diff: Source/core/html/HTMLIFrameElement.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/HTMLIFrameElement.cpp
diff --git a/Source/core/html/HTMLIFrameElement.cpp b/Source/core/html/HTMLIFrameElement.cpp
index b447e52765ac880b28b64b3b06ab87e34c7fda09..87151b26e4790e9c22ff8e66f50a20c2d98ac4ce 100644
--- a/Source/core/html/HTMLIFrameElement.cpp
+++ b/Source/core/html/HTMLIFrameElement.cpp
@@ -25,6 +25,7 @@
#include "config.h"
#include "core/html/HTMLIFrameElement.h"
+#include "bindings/v8/V8DOMActivityLogger.h"
#include "core/CSSPropertyNames.h"
#include "core/HTMLNames.h"
#include "core/html/HTMLDocument.h"
@@ -100,6 +101,15 @@ RenderObject* HTMLIFrameElement::createRenderer(RenderStyle*)
Node::InsertionNotificationRequest HTMLIFrameElement::insertedInto(ContainerNode* insertionPoint)
{
+ if (insertionPoint->isInTreeScope()) {
+ V8DOMActivityLogger* activityLogger = V8DOMActivityLogger::currentActivityLoggerIfIsolatedWorld();
+ if (activityLogger) {
+ Vector<String> argv;
+ argv.append("iframe");
+ argv.append(fastGetAttribute(srcAttr));
+ activityLogger->logEvent("blinkAddElement", 2, argv.data());
+ }
+ }
InsertionNotificationRequest result = HTMLFrameElementBase::insertedInto(insertionPoint);
if (insertionPoint->inDocument() && document().isHTMLDocument() && !insertionPoint->isInShadowTree())
toHTMLDocument(document()).addExtraNamedItem(m_name);

Powered by Google App Engine
This is Rietveld 408576698