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

Unified Diff: chrome/browser/download/download_manager.cc

Issue 271056: Do some cleanup of file path name handling. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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
« no previous file with comments | « chrome/browser/cocoa/web_drag_source.mm ('k') | chrome/browser/download/save_package.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/browser/cocoa/web_drag_source.mm ('k') | chrome/browser/download/save_package.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698