| OLD | NEW | 
|---|
| 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 | 
| OLD | NEW | 
|---|