diff options
Diffstat (limited to 'webkit/fileapi')
-rw-r--r-- | webkit/fileapi/file_system_dir_url_request_job.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/fileapi/file_system_dir_url_request_job.cc b/webkit/fileapi/file_system_dir_url_request_job.cc index 73b1fa4..d61dac0 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) { |