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

Unified Diff: mojo/shell/connect_to_application_params.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 | « mojo/shell/application_instance.cc ('k') | mojo/shell/fetcher/network_fetcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/shell/connect_to_application_params.cc
diff --git a/mojo/shell/connect_to_application_params.cc b/mojo/shell/connect_to_application_params.cc
index e631617b9323c5562f4688b76d64b63b3341837d..9d7c3a469f80afbf9b398673335792e7baa3a06a 100644
--- a/mojo/shell/connect_to_application_params.cc
+++ b/mojo/shell/connect_to_application_params.cc
@@ -37,8 +37,8 @@ void ConnectToApplicationParams::SetTargetURL(const GURL& target_url) {
}
void ConnectToApplicationParams::SetTargetURLRequest(URLRequestPtr request) {
- Identity target = request ? Identity(GURL(request->url), target_.qualifier(),
- target_.filter())
+ Identity target = request ? Identity(GURL(request->url.get()),
+ target_.qualifier(), target_.filter())
: Identity();
SetTargetURLRequest(std::move(request), target);
}
« no previous file with comments | « mojo/shell/application_instance.cc ('k') | mojo/shell/fetcher/network_fetcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698