Index: content/child/indexed_db/indexed_db_dispatcher_unittest.cc |
diff --git a/content/child/indexed_db/indexed_db_dispatcher_unittest.cc b/content/child/indexed_db/indexed_db_dispatcher_unittest.cc |
index 94b9ccac08faade99b332577f65e6b5f79e6d395..7e146e7b00b46bf37464f241f493bd99346f3510 100644 |
--- a/content/child/indexed_db/indexed_db_dispatcher_unittest.cc |
+++ b/content/child/indexed_db/indexed_db_dispatcher_unittest.cc |
@@ -3,7 +3,8 @@ |
// found in the LICENSE file. |
#include "base/memory/scoped_ptr.h" |
-#include "base/message_loop/message_loop_proxy.h" |
+#include "base/single_thread_task_runner.h" |
+#include "base/thread_task_runner_handle.h" |
#include "base/values.h" |
#include "content/child/indexed_db/indexed_db_dispatcher.h" |
#include "content/child/indexed_db/webidbcursor_impl.h" |
@@ -64,16 +65,16 @@ class MockDispatcher : public IndexedDBDispatcher { |
class IndexedDBDispatcherTest : public testing::Test { |
public: |
IndexedDBDispatcherTest() |
- : message_loop_proxy_(base::MessageLoopProxy::current()), |
+ : task_runner_(base::ThreadTaskRunnerHandle::Get()), |
sync_message_filter_(new IPC::SyncMessageFilter(NULL)), |
- thread_safe_sender_(new ThreadSafeSender(message_loop_proxy_.get(), |
+ thread_safe_sender_(new ThreadSafeSender(task_runner_.get(), |
sync_message_filter_.get())) {} |
void TearDown() override { blink::WebHeap::collectAllGarbageForTesting(); } |
protected: |
base::MessageLoop message_loop_; |
- scoped_refptr<base::MessageLoopProxy> message_loop_proxy_; |
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
scoped_refptr<IPC::SyncMessageFilter> sync_message_filter_; |
scoped_refptr<ThreadSafeSender> thread_safe_sender_; |