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

Unified Diff: components/precache/core/precache_fetcher_unittest.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/precache/core/precache_fetcher_unittest.cc
diff --git a/components/precache/core/precache_fetcher_unittest.cc b/components/precache/core/precache_fetcher_unittest.cc
index 7788443f925d455f1b5a51a0e6778bde53d7f50d..b909ed1fc71468908415ddbe3e5cd6eece1dc3a1 100644
--- a/components/precache/core/precache_fetcher_unittest.cc
+++ b/components/precache/core/precache_fetcher_unittest.cc
@@ -13,7 +13,7 @@
#include "base/callback.h"
#include "base/command_line.h"
#include "base/compiler_specific.h"
-#include "base/message_loop/message_loop.h"
+#include "base/thread_task_runner_handle.h"
#include "components/precache/core/precache_switches.h"
#include "components/precache/core/proto/precache.pb.h"
#include "net/http/http_response_headers.h"
@@ -74,9 +74,10 @@ class PrecacheFetcherTest : public testing::Test {
public:
PrecacheFetcherTest()
: request_context_(new net::TestURLRequestContextGetter(
- base::MessageLoopProxy::current())),
- factory_(NULL, base::Bind(&TestURLFetcherCallback::CreateURLFetcher,
- base::Unretained(&url_callback_))) {}
+ base::ThreadTaskRunnerHandle::Get())),
+ factory_(NULL,
+ base::Bind(&TestURLFetcherCallback::CreateURLFetcher,
+ base::Unretained(&url_callback_))) {}
protected:
base::MessageLoopForUI loop_;
« no previous file with comments | « components/precache/core/precache_database.cc ('k') | components/printing/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698