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

Unified Diff: third_party/WebKit/Source/core/dom/Document.cpp

Issue 2847703002: Make ExecutionContext aware about how it can return CoreProbeSink (Closed)
Patch Set: . Created 3 years, 8 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: 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 959fc436d78d92c7cd8f1a4669f50506ea642dd9..9ceb4b53f0290f8d3a22ae079e8c345fd6416bbd 100644
--- a/third_party/WebKit/Source/core/dom/Document.cpp
+++ b/third_party/WebKit/Source/core/dom/Document.cpp
@@ -6666,6 +6666,13 @@ void Document::DecrementPasswordCount() {
SendSensitiveInputVisibility();
}
+CoreProbeSink* Document::GetProbeSink() {
+ LocalFrame* frame = GetFrame();
+ if (!frame && TemplateDocumentHost())
+ frame = TemplateDocumentHost()->GetFrame();
+ return probe::ToCoreProbeSink(frame);
+}
+
DEFINE_TRACE(Document) {
visitor->Trace(imports_controller_);
visitor->Trace(doc_type_);
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | third_party/WebKit/Source/core/dom/ExecutionContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698