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

Unified Diff: sync/internal_api/sync_context_proxy_impl_unittest.cc

Issue 375403002: Replace MessageLoopProxy with ThreadTaskRunnerHandle in src/sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: sync/internal_api/sync_context_proxy_impl_unittest.cc
diff --git a/sync/internal_api/sync_context_proxy_impl_unittest.cc b/sync/internal_api/sync_context_proxy_impl_unittest.cc
index 18f5bbfea5b6352afdd912f7b5b4dbfea252e624..660670dbd827d3c755d993778f4dde4df3eb2f8b 100644
--- a/sync/internal_api/sync_context_proxy_impl_unittest.cc
+++ b/sync/internal_api/sync_context_proxy_impl_unittest.cc
@@ -3,9 +3,9 @@
// found in the LICENSE file.
#include "base/message_loop/message_loop.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/run_loop.h"
#include "base/sequenced_task_runner.h"
+#include "base/thread_task_runner_handle.h"
#include "sync/engine/model_type_sync_proxy_impl.h"
#include "sync/internal_api/public/base/model_type.h"
#include "sync/internal_api/public/sync_context.h"
@@ -18,8 +18,8 @@ namespace syncer {
class SyncContextProxyImplTest : public ::testing::Test {
public:
SyncContextProxyImplTest()
- : sync_task_runner_(base::MessageLoopProxy::current()),
- type_task_runner_(base::MessageLoopProxy::current()),
+ : sync_task_runner_(base::ThreadTaskRunnerHandle::Get()),
+ type_task_runner_(base::ThreadTaskRunnerHandle::Get()),
registry_(new ModelTypeRegistry()),
context_proxy_(sync_task_runner_, registry_->AsWeakPtr()) {}

Powered by Google App Engine
This is Rietveld 408576698