diff options
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/download/download_manager.cc | 2 | ||||
-rw-r--r-- | chrome/browser/net/url_fixer_upper_unittest.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/download/download_manager.cc b/chrome/browser/download/download_manager.cc index f0cdb97..c83056f 100644 --- a/chrome/browser/download/download_manager.cc +++ b/chrome/browser/download/download_manager.cc @@ -642,7 +642,7 @@ void DownloadManager::CheckIfSuggestedPathExists(DownloadCreateInfo* info) { // Create an empty file at the suggested path so that we don't allocate the // same "non-existant" path to multiple downloads. // See: http://code.google.com/p/chromium/issues/detail?id=3662 - file_util::WriteFile(info->suggested_path.ToWStringHack(), "", 0); + file_util::WriteFile(info->suggested_path, "", 0); } // Now we return to the UI thread. diff --git a/chrome/browser/net/url_fixer_upper_unittest.cc b/chrome/browser/net/url_fixer_upper_unittest.cc index 05ff728..61ba171 100644 --- a/chrome/browser/net/url_fixer_upper_unittest.cc +++ b/chrome/browser/net/url_fixer_upper_unittest.cc @@ -180,7 +180,7 @@ static bool MakeTempFile(const FilePath& dir, const FilePath& file_name, FilePath* full_path) { *full_path = dir.Append(file_name); - return file_util::WriteFile(full_path->ToWStringHack(), NULL, 0) == 0; + return file_util::WriteFile(*full_path, "", 0) == 0; } // Returns true if the given URL is a file: URL that matches the given file |