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

Unified Diff: components/sync_driver/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/data_type_controller.h ('k') | components/sync_driver/data_type_controller_mock.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/data_type_controller.cc
diff --git a/components/sync_driver/data_type_controller.cc b/components/sync_driver/data_type_controller.cc
deleted file mode 100644
index f1a138d7579b65432ed4d45eadf5fa28d87f19d9..0000000000000000000000000000000000000000
--- a/components/sync_driver/data_type_controller.cc
+++ /dev/null
@@ -1,47 +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/data_type_controller.h"
-
-#include "components/sync/base/data_type_histogram.h"
-#include "components/sync/base/model_type.h"
-#include "components/sync/core/user_share.h"
-
-namespace sync_driver {
-
-DataTypeController::DataTypeController(
- const scoped_refptr<base::SingleThreadTaskRunner>& ui_thread,
- const base::Closure& error_callback)
- : base::RefCountedDeleteOnMessageLoop<DataTypeController>(ui_thread),
- error_callback_(error_callback),
- ui_thread_(ui_thread) {}
-
-DataTypeController::~DataTypeController() {
-}
-
-bool DataTypeController::IsUnrecoverableResult(ConfigureResult result) {
- return (result == UNRECOVERABLE_ERROR);
-}
-
-bool DataTypeController::IsSuccessfulResult(ConfigureResult result) {
- return (result == OK || result == OK_FIRST_RUN);
-}
-
-syncer::SyncError DataTypeController::CreateAndUploadError(
- const tracked_objects::Location& location,
- const std::string& message,
- syncer::ModelType type) {
- if (!error_callback_.is_null())
- error_callback_.Run();
- return syncer::SyncError(location,
- syncer::SyncError::DATATYPE_ERROR,
- message,
- type);
-}
-
-bool DataTypeController::ReadyForStart() const {
- return true;
-}
-
-} // namespace sync_driver
« no previous file with comments | « components/sync_driver/data_type_controller.h ('k') | components/sync_driver/data_type_controller_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698