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

Unified Diff: mojo/shell/shell_application_delegate.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: mojo/shell/shell_application_delegate.cc
diff --git a/mojo/shell/shell_application_delegate.cc b/mojo/shell/shell_application_delegate.cc
index 650740d11b8b66b8963ee9c10ac783eb812e7071..86df31d0d61572cd05a23f743bdd133db37daf4d 100644
--- a/mojo/shell/shell_application_delegate.cc
+++ b/mojo/shell/shell_application_delegate.cc
@@ -39,7 +39,7 @@ void ShellApplicationDelegate::CreateInstanceForHandle(
const String& url,
CapabilityFilterPtr filter,
InterfaceRequest<mojom::PIDReceiver> pid_receiver) {
- manager_->CreateInstanceForHandle(std::move(channel), GURL(url),
+ manager_->CreateInstanceForHandle(std::move(channel), GURL(url.get()),
std::move(filter), std::move(pid_receiver));
}

Powered by Google App Engine
This is Rietveld 408576698