Index: content/browser/download/download_browsertest.cc |
diff --git a/content/browser/download/download_browsertest.cc b/content/browser/download/download_browsertest.cc |
index ab09c1d06c6c4939c6362ec98d397652731f7681..d9da7e8fb9f7d981adeb64a4f18089bef6988622 100644 |
--- a/content/browser/download/download_browsertest.cc |
+++ b/content/browser/download/download_browsertest.cc |
@@ -259,8 +259,8 @@ DownloadFile* DownloadFileWithDelayFactory::CreateFile( |
std::unique_ptr<device::PowerSaveBlocker> psb(new device::PowerSaveBlocker( |
device::PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension, |
device::PowerSaveBlocker::kReasonOther, "Download in progress", |
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE))); |
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::UI), |
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE))); |
return new DownloadFileWithDelay(std::move(save_info), |
default_download_directory, |
std::move(stream), |
@@ -358,8 +358,8 @@ class CountingDownloadFileFactory : public DownloadFileFactory { |
std::unique_ptr<device::PowerSaveBlocker> psb(new device::PowerSaveBlocker( |
device::PowerSaveBlocker::kPowerSaveBlockPreventAppSuspension, |
device::PowerSaveBlocker::kReasonOther, "Download in progress", |
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::UI), |
- BrowserThread::GetMessageLoopProxyForThread(BrowserThread::FILE))); |
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::UI), |
+ BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE))); |
return new CountingDownloadFile(std::move(save_info), |
default_downloads_directory, |
std::move(stream), |