summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download
diff options
context:
space:
mode:
authorestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-09 03:08:50 +0000
committerestade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-09 03:08:50 +0000
commit309b764b38f67d23f8b12488e6d1f542ca19b13e (patch)
treeb019a2748608482494160615527d50397f3514e5 /chrome/browser/download
parent784cee8f1792d709d0063ab683860492e9e4332e (diff)
downloadchromium_src-309b764b38f67d23f8b12488e6d1f542ca19b13e.zip
chromium_src-309b764b38f67d23f8b12488e6d1f542ca19b13e.tar.gz
chromium_src-309b764b38f67d23f8b12488e6d1f542ca19b13e.tar.bz2
Minor cleanup; remove deprecate file_util function and some obsolete TODOs.
Review URL: http://codereview.chromium.org/467030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@34133 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/download')
-rw-r--r--chrome/browser/download/download_manager.cc7
1 files changed, 1 insertions, 6 deletions
diff --git a/chrome/browser/download/download_manager.cc b/chrome/browser/download/download_manager.cc
index af7c9d5..1dcd72d 100644
--- a/chrome/browser/download/download_manager.cc
+++ b/chrome/browser/download/download_manager.cc
@@ -500,15 +500,10 @@ bool DownloadManager::Init(Profile* profile) {
download_path_.Init(prefs::kDownloadDefaultDirectory, prefs, NULL);
- // This variable is needed to resolve which CreateDirectory we want to point
- // to. Without it, the NewRunnableFunction cannot resolve the ambiguity.
- // TODO(estade): when file_util::CreateDirectory(wstring) is removed,
- // get rid of |CreateDirectoryPtr|.
- bool (*CreateDirectoryPtr)(const FilePath&) = &file_util::CreateDirectory;
// Ensure that the download directory specified in the preferences exists.
ChromeThread::PostTask(
ChromeThread::FILE, FROM_HERE,
- NewRunnableFunction(CreateDirectoryPtr, download_path()));
+ NewRunnableFunction(&file_util::CreateDirectory, download_path()));
// We use this to determine possibly dangerous downloads.
download_util::InitializeExeTypes(&exe_types_);