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

Unified Diff: storage/browser/fileapi/file_system_url_request_job.cc

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: storage/browser/fileapi/file_system_url_request_job.cc
diff --git a/storage/browser/fileapi/file_system_url_request_job.cc b/storage/browser/fileapi/file_system_url_request_job.cc
index 30fb47d2589f898a18d2053c334a552d805e3ff7..42d7c96e779354a28964bd2443acb4dd559d13d0 100644
--- a/storage/browser/fileapi/file_system_url_request_job.cc
+++ b/storage/browser/fileapi/file_system_url_request_job.cc
@@ -244,7 +244,7 @@ bool FileSystemURLRequestJob::IsRedirectResponse(GURL* location,
if (is_directory_) {
// This happens when we discovered the file is a directory, so needs a
// slash at the end of the path.
- std::string new_path = request_->url().path();
+ std::string new_path = request_->url().path().as_string();
new_path.push_back('/');
GURL::Replacements replacements;
replacements.SetPathStr(new_path);
« no previous file with comments | « net/websockets/websocket_stream_cookie_test.cc ('k') | storage/browser/fileapi/file_system_url_request_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698