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

Unified Diff: components/sync_driver/proxy_data_type_controller.cc

Issue 2203673002: [Sync] Move //components/sync_driver to //components/sync/driver. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sd-a
Patch Set: Full change rebased on static lib. Created 4 years, 4 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
« no previous file with comments | « components/sync_driver/proxy_data_type_controller.h ('k') | components/sync_driver/resources/about.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/proxy_data_type_controller.cc
diff --git a/components/sync_driver/proxy_data_type_controller.cc b/components/sync_driver/proxy_data_type_controller.cc
deleted file mode 100644
index b0e382446bc45de0226b34984d7822e6bc95d749..0000000000000000000000000000000000000000
--- a/components/sync_driver/proxy_data_type_controller.cc
+++ /dev/null
@@ -1,75 +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 "components/sync_driver/proxy_data_type_controller.h"
-
-#include "components/sync/api/sync_merge_result.h"
-
-namespace sync_driver {
-
-ProxyDataTypeController::ProxyDataTypeController(
- const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
- syncer::ModelType type)
- : DataTypeController(ui_thread, base::Closure()),
- state_(NOT_RUNNING),
- type_(type) {
- DCHECK(syncer::ProxyTypes().Has(type_));
-}
-
-ProxyDataTypeController::~ProxyDataTypeController() {
-}
-
-bool ProxyDataTypeController::ShouldLoadModelBeforeConfigure() const {
- return false;
-}
-
-void ProxyDataTypeController::LoadModels(
- const ModelLoadCallback& model_load_callback) {
- state_ = MODEL_LOADED;
- model_load_callback.Run(type(), syncer::SyncError());
-}
-
-void ProxyDataTypeController::RegisterWithBackend(
- BackendDataTypeConfigurer* configurer) {}
-
-void ProxyDataTypeController::StartAssociating(
- const StartCallback& start_callback) {
- syncer::SyncMergeResult local_merge_result(type_);
- syncer::SyncMergeResult syncer_merge_result(type_);
- state_ = RUNNING;
- start_callback.Run(DataTypeController::OK,
- local_merge_result,
- syncer_merge_result);
-}
-
-void ProxyDataTypeController::Stop() {
- state_ = NOT_RUNNING;
-}
-
-syncer::ModelType ProxyDataTypeController::type() const {
- DCHECK(syncer::ProxyTypes().Has(type_));
- return type_;
-}
-
-std::string ProxyDataTypeController::name() const {
- // For logging only.
- return syncer::ModelTypeToString(type());
-}
-
-DataTypeController::State ProxyDataTypeController::state() const {
- return state_;
-}
-
-void ProxyDataTypeController::OnSingleDataTypeUnrecoverableError(
- const syncer::SyncError& error) {
- NOTIMPLEMENTED();
-}
-
-void ProxyDataTypeController::ActivateDataType(
- BackendDataTypeConfigurer* configurer) {}
-
-void ProxyDataTypeController::DeactivateDataType(
- BackendDataTypeConfigurer* configurer) {}
-
-} // namespace sync_driver
« no previous file with comments | « components/sync_driver/proxy_data_type_controller.h ('k') | components/sync_driver/resources/about.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698