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

Unified Diff: ios/web/public/test/http_server.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
Index: ios/web/public/test/http_server.mm
diff --git a/ios/web/public/test/http_server.mm b/ios/web/public/test/http_server.mm
index e733a5f8b5c342f90dd3b2b7879daea26273aeb6..7b6335d924e64975fec1eb91079d18fe5cc806a7 100644
--- a/ios/web/public/test/http_server.mm
+++ b/ios/web/public/test/http_server.mm
@@ -168,7 +168,8 @@ GURL HttpServer::MakeUrlForHttpServer(const std::string& url) const {
// It is necessary to prepend the host of the input URL so that URLs such
// as http://origin/foo, http://destination/foo can be disamgiguated.
- const std::string new_path = std::string(result.host() + result.path());
+ const std::string new_path =
+ std::string(result.host() + result.path().as_string());
replacements.SetPathStr(new_path);
return result.ReplaceComponents(replacements);

Powered by Google App Engine
This is Rietveld 408576698