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

Unified Diff: components/html_viewer/blink_platform_impl.cc

Issue 1568073002: Reduce string copies in GURL creation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« no previous file with comments | « components/autofill/content/renderer/form_autofill_util.cc ('k') | components/html_viewer/html_document.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/html_viewer/blink_platform_impl.cc
diff --git a/components/html_viewer/blink_platform_impl.cc b/components/html_viewer/blink_platform_impl.cc
index 714f16fa3ad50c28db3af41cd7828477b06339ff..f39dc03f0c4eb5a83937e76585bc79cae5de661f 100644
--- a/components/html_viewer/blink_platform_impl.cc
+++ b/components/html_viewer/blink_platform_impl.cc
@@ -34,6 +34,7 @@
#include "net/base/ip_address_number.h"
#include "net/base/net_errors.h"
#include "net/base/net_util.h"
+#include "third_party/WebKit/public/platform/URLConversion.h"
#include "third_party/WebKit/public/platform/WebWaitableEvent.h"
#include "ui/base/resource/resource_bundle.h"
#include "ui/events/gestures/blink/web_gesture_curve_impl.h"
@@ -168,8 +169,8 @@ BlinkPlatformImpl::createOffscreenGraphicsContext3D(
blink::WebGraphicsContext3D::WebGraphicsInfo* gl_info) {
// TODO(penghuang): Use the app from the right HTMLDocument.
return WebGraphicsContext3DCommandBufferImpl::CreateOffscreenContext(
- global_state_, app_, GURL(attributes.topDocumentURL), attributes,
- share_context, gl_info);
+ global_state_, app_, blink::WebStringToGURL(attributes.topDocumentURL),
+ attributes, share_context, gl_info);
}
blink::WebGraphicsContext3D*
« no previous file with comments | « components/autofill/content/renderer/form_autofill_util.cc ('k') | components/html_viewer/html_document.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698