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

Unified Diff: ios/web/public/test/response_providers/file_based_response_provider_impl.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 | « ios/web/public/test/http_server.mm ('k') | ios/web/webui/crw_web_ui_manager_unittest.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/test/response_providers/file_based_response_provider_impl.mm
diff --git a/ios/web/public/test/response_providers/file_based_response_provider_impl.mm b/ios/web/public/test/response_providers/file_based_response_provider_impl.mm
index d7740b2caeda7a38c9b256d568a0be2dc2072d4a..0f3152bffb8fd51707bd3a79f987b532c4199c15 100644
--- a/ios/web/public/test/response_providers/file_based_response_provider_impl.mm
+++ b/ios/web/public/test/response_providers/file_based_response_provider_impl.mm
@@ -27,7 +27,7 @@ base::FilePath FileBasedResponseProviderImpl::BuildTargetPath(const GURL& url) {
if (url.host() != kLocalhostHost) {
result = result.Append(url.host());
}
- std::string url_path = url.path();
+ std::string url_path = url.path().as_string();
// Remove the leading slash in url path.
if (url_path.length() > 0 && url_path[0] == '/') {
url_path.erase(0, 1);
« no previous file with comments | « ios/web/public/test/http_server.mm ('k') | ios/web/webui/crw_web_ui_manager_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698