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

Unified Diff: sync/internal_api/model_type_connector_proxy.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 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/model_type_connector_proxy.cc
diff --git a/sync/internal_api/model_type_connector_proxy.cc b/sync/internal_api/model_type_connector_proxy.cc
deleted file mode 100644
index 3b0182df07a2a45995fd59bedd66a9be284a7b98..0000000000000000000000000000000000000000
--- a/sync/internal_api/model_type_connector_proxy.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sync/internal_api/model_type_connector_proxy.h"
-
-#include "base/bind.h"
-#include "base/location.h"
-#include "base/single_thread_task_runner.h"
-#include "sync/internal_api/public/activation_context.h"
-
-namespace syncer_v2 {
-
-ModelTypeConnectorProxy::ModelTypeConnectorProxy(
- const scoped_refptr<base::SequencedTaskRunner>& task_runner,
- const base::WeakPtr<ModelTypeConnector>& model_type_connector)
- : task_runner_(task_runner), model_type_connector_(model_type_connector) {}
-
-ModelTypeConnectorProxy::~ModelTypeConnectorProxy() {}
-
-void ModelTypeConnectorProxy::ConnectType(
- syncer::ModelType type,
- std::unique_ptr<ActivationContext> activation_context) {
- task_runner_->PostTask(
- FROM_HERE,
- base::Bind(&ModelTypeConnector::ConnectType, model_type_connector_, type,
- base::Passed(&activation_context)));
-}
-
-void ModelTypeConnectorProxy::DisconnectType(syncer::ModelType type) {
- task_runner_->PostTask(FROM_HERE,
- base::Bind(&ModelTypeConnector::DisconnectType,
- model_type_connector_, type));
-}
-
-} // namespace syncer_v2
« no previous file with comments | « sync/internal_api/model_type_connector_proxy.h ('k') | sync/internal_api/model_type_connector_proxy_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698