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

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

Issue 6973052: When the download folder does not exist, change the download folder to a user's "Downloads" (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Correct typo Created 9 years, 7 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 | « no previous file | chrome/browser/download/save_package.cc » ('j') | chrome/browser/download/save_package.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_manager.cc
diff --git a/chrome/browser/download/download_manager.cc b/chrome/browser/download/download_manager.cc
index 6ef4a2b1e812ba36598d087e77f7925cacde2c3a..d96fc20b94e6c5d128886cd37276a5e055109265 100644
--- a/chrome/browser/download/download_manager.cc
+++ b/chrome/browser/download/download_manager.cc
@@ -340,11 +340,6 @@ void DownloadManager::CheckIfSuggestedPathExists(DownloadCreateInfo* info,
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
DCHECK(info);
- // Make sure the default download directory exists.
- // TODO(phajdan.jr): only create the directory when we're sure the user
Paweł Hajdan Jr. 2011/05/13 09:16:22 By this comment I meant that in DownloadManager::C
Randy Smith (Not in Mondays) 2011/05/16 21:31:05 Pawel: I'm trying to think about how I'd ideally f
haraken1 2011/05/17 04:29:05 I would like to wait Pawel's reply.
Paweł Hajdan Jr. 2011/05/17 16:33:33 Yeah, generally the TODO is about removing this co
haraken1 2011/05/30 13:40:52 Finally, I removed these codes.
- // is going to save there and not to another directory of his choice.
- file_util::CreateDirectory(default_path);
-
// Check writability of the suggested path. If we can't write to it, default
// to the user's "My Documents" directory. We'll prompt them in this case.
FilePath dir = info->suggested_path.DirName();
« no previous file with comments | « no previous file | chrome/browser/download/save_package.cc » ('j') | chrome/browser/download/save_package.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698