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

Unified Diff: third_party/WebKit/Source/web/InspectorOverlay.cpp

Issue 2787573002: InspectorOverlay: Don't copy from SharedBuffer to SharedBuffer. (Closed)
Patch Set: . Created 3 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/InspectorOverlay.cpp
diff --git a/third_party/WebKit/Source/web/InspectorOverlay.cpp b/third_party/WebKit/Source/web/InspectorOverlay.cpp
index dea52c5872e76d27a440625c4063e109f2f468ca..3127ec2aa39530908613b7e3849660a75213b709 100644
--- a/third_party/WebKit/Source/web/InspectorOverlay.cpp
+++ b/third_party/WebKit/Source/web/InspectorOverlay.cpp
@@ -554,11 +554,10 @@ Page* InspectorOverlay::overlayPage() {
const WebData& overlayPageHTMLResource =
Platform::current()->loadResource("InspectorOverlayPage.html");
- RefPtr<SharedBuffer> data = SharedBuffer::create(
- overlayPageHTMLResource.data(), overlayPageHTMLResource.size());
- loader.load(FrameLoadRequest(
- 0, blankURL(), SubstituteData(data, "text/html", "UTF-8", KURL(),
- ForceSynchronousLoad)));
+ loader.load(
+ FrameLoadRequest(0, blankURL(),
+ SubstituteData(overlayPageHTMLResource, "text/html",
+ "UTF-8", KURL(), ForceSynchronousLoad)));
v8::Isolate* isolate = toIsolate(frame);
ScriptState* scriptState = ScriptState::forMainWorld(frame);
DCHECK(scriptState);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698