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

Unified Diff: chrome/browser/net/url_request_mock_http_job.cc

Issue 6246036: FilePath: Remove most of ToWStringHack, adding a LossyDisplayName() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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
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.

Powered by Google App Engine
This is Rietveld 408576698