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

Unified Diff: third_party/WebKit/Source/core/inspector/InspectedFrames.cpp

Issue 2878933003: Makes WorkerInspectorProxy work with ExecutionContext instead of Document (Closed)
Patch Set: . Created 3 years, 7 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/inspector/InspectedFrames.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectedFrames.cpp b/third_party/WebKit/Source/core/inspector/InspectedFrames.cpp
index 3ce17b1b6c66ac013b9018fd918bbd3c953ebbdd..c86ece0f2cf2110ecbdc286579b0d62dc810b858 100644
--- a/third_party/WebKit/Source/core/inspector/InspectedFrames.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectedFrames.cpp
@@ -23,6 +23,10 @@ bool InspectedFrames::Contains(LocalFrame* frame) const {
return frame->InstrumentingAgents() == root_->InstrumentingAgents();
}
+bool InspectedFrames::Contains(ExecutionContext* context) const {
+ return context->GetProbeSink() == root_->InstrumentingAgents();
+}
+
LocalFrame* InspectedFrames::FrameWithSecurityOrigin(
const String& origin_raw_string) {
for (LocalFrame* frame : *this) {

Powered by Google App Engine
This is Rietveld 408576698