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

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

Issue 1143343005: chrome/browser: Remove use of MessageLoopProxy and deprecated MessageLoop APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 6 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_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 {}

Powered by Google App Engine
This is Rietveld 408576698