Index: chrome/browser/download/download_manager.cc |
=================================================================== |
--- chrome/browser/download/download_manager.cc (revision 29772) |
+++ chrome/browser/download/download_manager.cc (working copy) |
@@ -1212,11 +1212,10 @@ |
void DownloadManager::GenerateFilename(DownloadCreateInfo* info, |
FilePath* generated_name) { |
- *generated_name = FilePath::FromWStringHack( |
- net::GetSuggestedFilename(GURL(info->url), |
- info->content_disposition, |
- info->referrer_charset, |
- L"download")); |
+ *generated_name = net::GetSuggestedFilename(GURL(info->url), |
+ info->content_disposition, |
+ info->referrer_charset, |
+ "download"); |
DCHECK(!generated_name->empty()); |
GenerateSafeFilename(info->mime_type, generated_name); |