Chromium Code Reviews

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

Issue 1389383003: WIP: Introduce CompressibleString Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
diff --git a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
index e53a8310179e00da4e02c1ca6465faa7410fab42..aa6f5a42fe727a4ae61bab2443b4ccc007955272 100644
--- a/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
+++ b/third_party/WebKit/Source/core/inspector/InspectorPageAgent.cpp
@@ -219,7 +219,7 @@ bool InspectorPageAgent::cachedResourceContent(Resource* cachedResource, String*
*result = toCSSStyleSheetResource(cachedResource)->sheetText();
return true;
case Resource::Script:
- *result = cachedResource->resourceBuffer() ? toScriptResource(cachedResource)->decodedText() : toScriptResource(cachedResource)->script();
+ *result = cachedResource->resourceBuffer() ? toScriptResource(cachedResource)->decodedText() : toScriptResource(cachedResource)->script()->toString();
return true;
case Resource::ImportResource: // Fall through.
case Resource::Raw: {

Powered by Google App Engine