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

Side by Side Diff: components/sync/core_impl/model_type_connector_proxy.cc

Issue 2376123003: [Sync] Move //components/sync to the syncer namespace. (Closed)
Patch Set: Rebase. Created 4 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync/core_impl/model_type_connector_proxy.h" 5 #include "components/sync/core_impl/model_type_connector_proxy.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/location.h" 8 #include "base/location.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "components/sync/core/activation_context.h" 10 #include "components/sync/core/activation_context.h"
11 11
12 namespace syncer_v2 { 12 namespace syncer {
13 13
14 ModelTypeConnectorProxy::ModelTypeConnectorProxy( 14 ModelTypeConnectorProxy::ModelTypeConnectorProxy(
15 const scoped_refptr<base::SequencedTaskRunner>& task_runner, 15 const scoped_refptr<base::SequencedTaskRunner>& task_runner,
16 const base::WeakPtr<ModelTypeConnector>& model_type_connector) 16 const base::WeakPtr<ModelTypeConnector>& model_type_connector)
17 : task_runner_(task_runner), model_type_connector_(model_type_connector) {} 17 : task_runner_(task_runner), model_type_connector_(model_type_connector) {}
18 18
19 ModelTypeConnectorProxy::~ModelTypeConnectorProxy() {} 19 ModelTypeConnectorProxy::~ModelTypeConnectorProxy() {}
20 20
21 void ModelTypeConnectorProxy::ConnectType( 21 void ModelTypeConnectorProxy::ConnectType(
22 syncer::ModelType type, 22 ModelType type,
23 std::unique_ptr<ActivationContext> activation_context) { 23 std::unique_ptr<ActivationContext> activation_context) {
24 task_runner_->PostTask( 24 task_runner_->PostTask(
25 FROM_HERE, 25 FROM_HERE,
26 base::Bind(&ModelTypeConnector::ConnectType, model_type_connector_, type, 26 base::Bind(&ModelTypeConnector::ConnectType, model_type_connector_, type,
27 base::Passed(&activation_context))); 27 base::Passed(&activation_context)));
28 } 28 }
29 29
30 void ModelTypeConnectorProxy::DisconnectType(syncer::ModelType type) { 30 void ModelTypeConnectorProxy::DisconnectType(ModelType type) {
31 task_runner_->PostTask(FROM_HERE, 31 task_runner_->PostTask(FROM_HERE,
32 base::Bind(&ModelTypeConnector::DisconnectType, 32 base::Bind(&ModelTypeConnector::DisconnectType,
33 model_type_connector_, type)); 33 model_type_connector_, type));
34 } 34 }
35 35
36 } // namespace syncer_v2 36 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698