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

Unified Diff: Source/core/inspector/InspectorResourceAgent.cpp

Issue 898593002: DevTools: use per-LocalFrame instrumenting agents instead of per-Page ones. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 11 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: Source/core/inspector/InspectorResourceAgent.cpp
diff --git a/Source/core/inspector/InspectorResourceAgent.cpp b/Source/core/inspector/InspectorResourceAgent.cpp
index 9430e9408813680afbcce9f139b2afc0e07da6e7..b850597da1c91365b47b367aff71fd5298512253 100644
--- a/Source/core/inspector/InspectorResourceAgent.cpp
+++ b/Source/core/inspector/InspectorResourceAgent.cpp
@@ -923,7 +923,7 @@ void InspectorResourceAgent::emulateNetworkConditions(ErrorString*, bool, double
void InspectorResourceAgent::loadResourceForFrontend(ErrorString* errorString, const String& url, const RefPtr<JSONObject>* requestHeaders, PassRefPtrWillBeRawPtr<LoadResourceForFrontendCallback> prpCallback)
{
RefPtrWillBeRawPtr<LoadResourceForFrontendCallback> callback = prpCallback;
- Frame* frame = m_pageAgent->page()->mainFrame();
+ Frame* frame = m_pageAgent->mainFrame();
if (!frame || !frame->isLocalFrame()) {
*errorString = "No frame to use as a loader found";
return;

Powered by Google App Engine
This is Rietveld 408576698