Chromium Code Reviews

Unified Diff: chrome/browser/supervised_user/experimental/supervised_user_async_url_checker_unittest.cc

Issue 1112403005: [chrome/browser] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed nit Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: chrome/browser/supervised_user/experimental/supervised_user_async_url_checker_unittest.cc
diff --git a/chrome/browser/supervised_user/experimental/supervised_user_async_url_checker_unittest.cc b/chrome/browser/supervised_user/experimental/supervised_user_async_url_checker_unittest.cc
index 03312b120b4eb225a2a59f3717d98f331d951212..0099af65ca80498fa0c916ee2ee4f58471ffa2f7 100644
--- a/chrome/browser/supervised_user/experimental/supervised_user_async_url_checker_unittest.cc
+++ b/chrome/browser/supervised_user/experimental/supervised_user_async_url_checker_unittest.cc
@@ -8,7 +8,7 @@
#include "base/json/json_writer.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
-#include "base/message_loop/message_loop_proxy.h"
+#include "base/thread_task_runner_handle.h"
#include "base/values.h"
#include "chrome/browser/supervised_user/experimental/supervised_user_async_url_checker.h"
#include "net/url_request/test_url_fetcher_factory.h"
@@ -64,9 +64,8 @@ class SupervisedUserAsyncURLCheckerTest : public testing::Test {
SupervisedUserAsyncURLCheckerTest()
: next_url_(0),
request_context_(new net::TestURLRequestContextGetter(
- base::MessageLoopProxy::current())),
- checker_(request_context_.get(), kCacheSize) {
- }
+ base::ThreadTaskRunnerHandle::Get())),
+ checker_(request_context_.get(), kCacheSize) {}
MOCK_METHOD3(OnCheckDone,
void(const GURL& url,

Powered by Google App Engine