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

Unified Diff: webkit/fileapi/file_system_dir_url_request_job.cc

Issue 6537011: Display only the sandboxed portion of the URL when listing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/fileapi/file_system_dir_url_request_job.cc
diff --git a/webkit/fileapi/file_system_dir_url_request_job.cc b/webkit/fileapi/file_system_dir_url_request_job.cc
index 73b1fa489abd643a6db0753424e8c5e69d504215..d61dac0cd523d0d680478d88325867d023382187 100644
--- a/webkit/fileapi/file_system_dir_url_request_job.cc
+++ b/webkit/fileapi/file_system_dir_url_request_job.cc
@@ -116,12 +116,12 @@ void FileSystemDirURLRequestJob::DidReadDirectory(
}
#if defined(OS_WIN)
- const string16& title = absolute_dir_path_.value();
+ const string16& title = relative_dir_path_.value();
#elif defined(OS_POSIX)
const string16& title = WideToUTF16(
- base::SysNativeMBToWide(absolute_dir_path_.value()));
+ base::SysNativeMBToWide(relative_dir_path_.value()));
#endif
- data_.append(net::GetDirectoryListingHeader(title));
+ data_.append(net::GetDirectoryListingHeader(ASCIIToUTF16("/") + title));
typedef std::vector<base::FileUtilProxy::Entry>::const_iterator EntryIterator;
for (EntryIterator it = entries.begin(); it != entries.end(); ++it) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698