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

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

Issue 2890853002: Downloads: replace BrowserThread::FILE with task scheduler. (Closed)
Patch Set: Revert ScopedCOMInitializer invocations. Created 3 years, 5 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
Index: chrome/browser/download/download_prefs.cc
diff --git a/chrome/browser/download/download_prefs.cc b/chrome/browser/download/download_prefs.cc
index eb39af5963a5d1d72a0f57540c3c8ce72971bfca..7a81ac538b50d0b660891239c5e9d11b2479d1c7 100644
--- a/chrome/browser/download/download_prefs.cc
+++ b/chrome/browser/download/download_prefs.cc
@@ -130,10 +130,9 @@ DownloadPrefs::DownloadPrefs(Profile* profile) : profile_(profile) {
}
// Ensure that the default download directory exists.
- BrowserThread::PostTask(
- BrowserThread::FILE, FROM_HERE,
- base::BindOnce(base::IgnoreResult(&base::CreateDirectory),
- GetDefaultDownloadDirectoryForProfile()));
+ content::DownloadManager::GetTaskRunner()->PostTask(
+ FROM_HERE, base::BindOnce(base::IgnoreResult(&base::CreateDirectory),
+ GetDefaultDownloadDirectoryForProfile()));
#endif // defined(OS_CHROMEOS)
#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX)

Powered by Google App Engine
This is Rietveld 408576698