Index: chrome/browser/download/download_test_file_activity_observer.cc |
diff --git a/chrome/browser/download/download_test_file_activity_observer.cc b/chrome/browser/download/download_test_file_activity_observer.cc |
index b7e704bcbcd167896badc7827c2033e5ec99dfa5..d9ff901a3fa669ad9c4ea088914dc6f70475bc1b 100644 |
--- a/chrome/browser/download/download_test_file_activity_observer.cc |
+++ b/chrome/browser/download/download_test_file_activity_observer.cc |
@@ -5,7 +5,9 @@ |
#include "chrome/browser/download/download_test_file_activity_observer.h" |
#include "base/bind.h" |
-#include "base/message_loop/message_loop.h" |
+#include "base/location.h" |
+#include "base/single_thread_task_runner.h" |
+#include "base/thread_task_runner_handle.h" |
#include "chrome/browser/download/chrome_download_manager_delegate.h" |
#include "chrome/browser/download/download_service.h" |
#include "chrome/browser/download/download_service_factory.h" |
@@ -53,9 +55,10 @@ class DownloadTestFileActivityObserver::MockDownloadManagerDelegate |
const base::FilePath& suggested_path, |
const FileSelectedCallback& callback) override { |
file_chooser_displayed_ = true; |
- base::MessageLoop::current()->PostTask( |
- FROM_HERE, base::Bind(callback, (file_chooser_enabled_ ? suggested_path |
- : base::FilePath()))); |
+ base::ThreadTaskRunnerHandle::Get()->PostTask( |
+ FROM_HERE, |
+ base::Bind(callback, (file_chooser_enabled_ ? suggested_path |
+ : base::FilePath()))); |
} |
void OpenDownload(content::DownloadItem* item) override {} |