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

Unified Diff: components/update_client/background_downloader_win.cc

Issue 1144153004: components: 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, 7 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: components/update_client/background_downloader_win.cc
diff --git a/components/update_client/background_downloader_win.cc b/components/update_client/background_downloader_win.cc
index 536fafd30039b49507c92d5f9046ed7f7b4a7e26..7ea2d4395119d7cf3f200e08910677d8affe43cc 100644
--- a/components/update_client/background_downloader_win.cc
+++ b/components/update_client/background_downloader_win.cc
@@ -16,9 +16,9 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/files/file_util.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/sys_string_conversions.h"
+#include "base/thread_task_runner_handle.h"
#include "base/win/scoped_co_mem.h"
#include "components/update_client/utils.h"
#include "ui/base/win/atl_module.h"
@@ -393,7 +393,7 @@ BackgroundDownloader::BackgroundDownloader(
net::URLRequestContextGetter* context_getter,
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: CrxDownloader(successor.Pass()),
- main_task_runner_(base::MessageLoopProxy::current()),
+ main_task_runner_(base::ThreadTaskRunnerHandle::Get()),
context_getter_(context_getter),
task_runner_(task_runner),
is_completed_(false) {
« no previous file with comments | « components/update_client/background_downloader_win.h ('k') | components/update_client/crx_downloader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698