| Index: third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| index 27d945ba2eca6e0cfe8e6ccd10bfb288f1749d37..5cf968bc75f439b8ce406bee86e6709165e52fcf 100644
|
| --- a/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| +++ b/third_party/WebKit/Source/core/loader/FrameFetchContext.cpp
|
| @@ -47,7 +47,6 @@
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| #include "core/inspector/InspectorResourceAgent.h"
|
| #include "core/inspector/InspectorTraceEvents.h"
|
| -#include "core/inspector/InstrumentingAgents.h"
|
| #include "core/loader/DocumentLoader.h"
|
| #include "core/loader/FrameLoader.h"
|
| #include "core/loader/FrameLoaderClient.h"
|
| @@ -446,11 +445,8 @@ bool FrameFetchContext::allowResponse(Resource::Type type, const ResourceRequest
|
|
|
| ResourceRequestBlockedReason FrameFetchContext::canRequestInternal(Resource::Type type, const ResourceRequest& resourceRequest, const KURL& url, const ResourceLoaderOptions& options, bool forPreload, FetchRequest::OriginRestriction originRestriction, ContentSecurityPolicy::RedirectStatus redirectStatus) const
|
| {
|
| - InstrumentingAgents* agents = InspectorInstrumentation::instrumentingAgentsFor(frame());
|
| - if (agents && agents->inspectorResourceAgent()) {
|
| - if (agents->inspectorResourceAgent()->shouldBlockRequest(resourceRequest))
|
| - return ResourceRequestBlockedReasonInspector;
|
| - }
|
| + if (InspectorInstrumentation::shouldBlockRequest(frame(), resourceRequest))
|
| + return ResourceRequestBlockedReasonInspector;
|
|
|
| SecurityOrigin* securityOrigin = options.securityOrigin.get();
|
| if (!securityOrigin && m_document)
|
|
|