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

Unified Diff: net/base/mac/url_conversions.mm

Issue 2481923002: [WIP] make GURL::path() return a StringPiece (Closed)
Patch Set: thanks asan Created 4 years, 1 month 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 | « net/base/filename_util.cc ('k') | net/base/sdch_dictionary.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mac/url_conversions.mm
diff --git a/net/base/mac/url_conversions.mm b/net/base/mac/url_conversions.mm
index 3171c6fde6538a6051f218c3e585478dcd82f7db..0a74a619807d1fdb1e03d1a63b9e4ecaf53e6fd1 100644
--- a/net/base/mac/url_conversions.mm
+++ b/net/base/mac/url_conversions.mm
@@ -25,7 +25,7 @@ NSURL* NSURLWithGURL(const GURL& url) {
// ref. This function manually encodes those components, and then passes the
// result to NSURL.
GURL::Replacements replacements;
- std::string escaped_path = EscapeNSURLPrecursor(url.path());
+ std::string escaped_path = EscapeNSURLPrecursor(url.path().as_string());
std::string escaped_query = EscapeNSURLPrecursor(url.query());
std::string escaped_ref = EscapeNSURLPrecursor(url.ref());
if (!escaped_path.empty()) {
« no previous file with comments | « net/base/filename_util.cc ('k') | net/base/sdch_dictionary.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698