summaryrefslogtreecommitdiffstats
path: root/chrome/browser/download_file.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/download_file.cc')
-rw-r--r--chrome/browser/download_file.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/download_file.cc b/chrome/browser/download_file.cc
index 5f8ab12..032d701 100644
--- a/chrome/browser/download_file.cc
+++ b/chrome/browser/download_file.cc
@@ -609,3 +609,8 @@ void DownloadFileManager::OnFinalDownloadName(int id,
ui_loop_->PostTask(FROM_HERE, NewRunnableMethod(
this, &DownloadFileManager::StopUpdateTimer));
}
+
+void DownloadFileManager::CreateDirectory(const std::wstring& directory) {
+ if (!file_util::PathExists(directory))
+ file_util::CreateDirectory(directory);
+} \ No newline at end of file