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

Unified Diff: mojo/services/network/url_loader_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 | « mojo/runner/android/android_handler.cc ('k') | mojo/shell/application_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/services/network/url_loader_impl.cc
diff --git a/mojo/services/network/url_loader_impl.cc b/mojo/services/network/url_loader_impl.cc
index bcd73f1fc0b80445e644e8b8cfbd8ac7975ee35f..2496f3a02a93b61b3c8c152feae99ccd7e349930 100644
--- a/mojo/services/network/url_loader_impl.cc
+++ b/mojo/services/network/url_loader_impl.cc
@@ -177,7 +177,7 @@ void URLLoaderImpl::Start(URLRequestPtr request,
}
url_request_ = context_->url_request_context()->CreateRequest(
- GURL(request->url), net::DEFAULT_PRIORITY, this);
+ GURL(request->url.get()), net::DEFAULT_PRIORITY, this);
url_request_->set_method(request->method);
// TODO(jam): need to specify this policy.
url_request_->set_referrer_policy(
« no previous file with comments | « mojo/runner/android/android_handler.cc ('k') | mojo/shell/application_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698