Chromium Code Reviews| 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(); |
|
dgozman
2017/05/15 16:39:55
This code looks strange as is. I would not expect
kinuko
2017/05/15 20:09:34
Actually this is the important bit I want to discu
|
| +} |
| + |
| LocalFrame* InspectedFrames::FrameWithSecurityOrigin( |
| const String& origin_raw_string) { |
| for (LocalFrame* frame : *this) { |