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_); |