Index: chrome/browser/automation/url_request_mock_net_error_job.cc |
diff --git a/chrome/browser/automation/url_request_mock_net_error_job.cc b/chrome/browser/automation/url_request_mock_net_error_job.cc |
index e6ab51f4bcf85f97bc8eed8079c848d0b51f92e5..0b9a20ae0ef567d6c4003fa2026214b25d1c6eda 100644 |
--- a/chrome/browser/automation/url_request_mock_net_error_job.cc |
+++ b/chrome/browser/automation/url_request_mock_net_error_job.cc |
@@ -54,11 +54,11 @@ URLRequestJob* URLRequestMockNetErrorJob::Factory(URLRequest* request, |
file_url.append(mock_info.base); |
file_url.append(UTF8ToWide(url.path())); |
// Convert the file:/// URL to a path on disk. |
- std::wstring file_path; |
+ FilePath file_path; |
net::FileURLToFilePath(GURL(WideToUTF8(file_url)), &file_path); |
return new URLRequestMockNetErrorJob(request, mock_info.errors, |
mock_info.ssl_cert, |
- FilePath::FromWStringHack(file_path)); |
+ file_path); |
} |
URLRequestMockNetErrorJob::URLRequestMockNetErrorJob(URLRequest* request, |