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

Unified Diff: content/browser/navigator_connect/service_port_service_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
Index: content/browser/navigator_connect/service_port_service_impl.cc
diff --git a/content/browser/navigator_connect/service_port_service_impl.cc b/content/browser/navigator_connect/service_port_service_impl.cc
index 310c304ab3e09e057c44550b91980935f114f5a5..73ea2793ed43573ac6a024ef1be775752f1808eb 100644
--- a/content/browser/navigator_connect/service_port_service_impl.cc
+++ b/content/browser/navigator_connect/service_port_service_impl.cc
@@ -91,7 +91,7 @@ void ServicePortServiceImpl::Connect(const mojo::String& target_url,
const mojo::String& origin,
const ConnectCallback& callback) {
navigator_connect_context_->Connect(
- GURL(target_url), GURL(origin), this,
+ GURL(target_url.get()), GURL(origin.get()), this,
base::Bind(&ServicePortServiceImpl::OnConnectResult,
weak_ptr_factory_.GetWeakPtr(), callback));
}
« no previous file with comments | « content/browser/frame_host/frame_mojo_shell.cc ('k') | content/browser/permissions/permission_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698