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

Side by Side Diff: components/sync/driver/data_type_controller.cc

Issue 2407163004: [Sync] Move some directory-related things from core/ to syncable/. (Closed)
Patch Set: 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/driver/data_type_controller.h" 5 #include "components/sync/driver/data_type_controller.h"
6 6
7 #include "components/sync/base/data_type_histogram.h" 7 #include "components/sync/base/data_type_histogram.h"
8 #include "components/sync/core/user_share.h" 8 #include "components/sync/syncable/user_share.h"
9 9
10 namespace syncer { 10 namespace syncer {
11 11
12 DataTypeController::DataTypeController(ModelType type, 12 DataTypeController::DataTypeController(ModelType type,
13 const base::Closure& dump_stack) 13 const base::Closure& dump_stack)
14 : dump_stack_(dump_stack), type_(type) {} 14 : dump_stack_(dump_stack), type_(type) {}
15 15
16 DataTypeController::~DataTypeController() {} 16 DataTypeController::~DataTypeController() {}
17 17
18 bool DataTypeController::IsUnrecoverableResult(ConfigureResult result) { 18 bool DataTypeController::IsUnrecoverableResult(ConfigureResult result) {
19 return (result == UNRECOVERABLE_ERROR); 19 return (result == UNRECOVERABLE_ERROR);
20 } 20 }
21 21
22 bool DataTypeController::IsSuccessfulResult(ConfigureResult result) { 22 bool DataTypeController::IsSuccessfulResult(ConfigureResult result) {
23 return (result == OK || result == OK_FIRST_RUN); 23 return (result == OK || result == OK_FIRST_RUN);
24 } 24 }
25 25
26 bool DataTypeController::ReadyForStart() const { 26 bool DataTypeController::ReadyForStart() const {
27 return true; 27 return true;
28 } 28 }
29 29
30 bool DataTypeController::CalledOnValidThread() const { 30 bool DataTypeController::CalledOnValidThread() const {
31 return thread_checker_.CalledOnValidThread(); 31 return thread_checker_.CalledOnValidThread();
32 } 32 }
33 33
34 } // namespace syncer 34 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/driver/change_processor.h ('k') | components/sync/driver/directory_data_type_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698