Index: net/url_request/url_request_file_dir_job.cc |
diff --git a/net/url_request/url_request_file_dir_job.cc b/net/url_request/url_request_file_dir_job.cc |
index 39093701095232131254fa78661286c660f2f7c4..d98da02ae9136b2431d0605691c07fbdd895f464 100644 |
--- a/net/url_request/url_request_file_dir_job.cc |
+++ b/net/url_request/url_request_file_dir_job.cc |
@@ -119,7 +119,8 @@ void URLRequestFileDirJob::OnListFile( |
std::string raw_bytes; // Empty on Windows means UTF-8 encoded name. |
#elif defined(OS_POSIX) |
// TOOD(jungshik): The same issue as for the directory name. |
- const std::string& raw_bytes = data.info.GetName().value(); |
+ base::FilePath filename = data.info.GetName(); |
+ const std::string& raw_bytes = filename.value(); |
#endif |
data_.append(GetDirectoryListingEntry( |
data.info.GetName().LossyDisplayName(), |