| Index: chrome/browser/net/url_request_mock_http_job.cc
|
| diff --git a/chrome/browser/net/url_request_mock_http_job.cc b/chrome/browser/net/url_request_mock_http_job.cc
|
| index 36113085693f134bd8e53094ef838810fbccf161..a22d892572467726f721dbff4f7f64c3efddc92e 100644
|
| --- a/chrome/browser/net/url_request_mock_http_job.cc
|
| +++ b/chrome/browser/net/url_request_mock_http_job.cc
|
| @@ -42,7 +42,7 @@ GURL URLRequestMockHTTPJob::GetMockUrl(const FilePath& path) {
|
| std::string url = "http://";
|
| url.append(kMockHostname);
|
| url.append("/");
|
| - url.append(WideToUTF8(path.ToWStringHack()));
|
| + url.append(UTF16ToUTF8(path.LossyDisplayName()));
|
| return GURL(url);
|
| }
|
|
|
| @@ -59,7 +59,7 @@ FilePath URLRequestMockHTTPJob::GetOnDiskPath(const FilePath& base_path,
|
| net::URLRequest* request,
|
| const std::string& scheme) {
|
| std::string file_url("file:///");
|
| - file_url += WideToUTF8(base_path.ToWStringHack());
|
| + file_url + UTF16ToUTF8(base_path.LossyDisplayName());
|
| file_url += request->url().path();
|
|
|
| // Convert the file:/// URL to a path on disk.
|
|
|