| 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_manager_impl.h" | 5 #include "components/sync_driver/data_type_manager_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <functional> | 8 #include <functional> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 syncer::SyncError::CRYPTO_ERROR, | 35 syncer::SyncError::CRYPTO_ERROR, |
| 36 "", | 36 "", |
| 37 iter.Get()); | 37 iter.Get()); |
| 38 } | 38 } |
| 39 return crypto_errors; | 39 return crypto_errors; |
| 40 } | 40 } |
| 41 | 41 |
| 42 } // namespace | 42 } // namespace |
| 43 | 43 |
| 44 DataTypeManagerImpl::AssociationTypesInfo::AssociationTypesInfo() {} | 44 DataTypeManagerImpl::AssociationTypesInfo::AssociationTypesInfo() {} |
| 45 DataTypeManagerImpl::AssociationTypesInfo::AssociationTypesInfo( |
| 46 const AssociationTypesInfo& other) = default; |
| 45 DataTypeManagerImpl::AssociationTypesInfo::~AssociationTypesInfo() {} | 47 DataTypeManagerImpl::AssociationTypesInfo::~AssociationTypesInfo() {} |
| 46 | 48 |
| 47 DataTypeManagerImpl::DataTypeManagerImpl( | 49 DataTypeManagerImpl::DataTypeManagerImpl( |
| 48 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& | 50 const syncer::WeakHandle<syncer::DataTypeDebugInfoListener>& |
| 49 debug_info_listener, | 51 debug_info_listener, |
| 50 const DataTypeController::TypeMap* controllers, | 52 const DataTypeController::TypeMap* controllers, |
| 51 const DataTypeEncryptionHandler* encryption_handler, | 53 const DataTypeEncryptionHandler* encryption_handler, |
| 52 BackendDataTypeConfigurer* configurer, | 54 BackendDataTypeConfigurer* configurer, |
| 53 DataTypeManagerObserver* observer) | 55 DataTypeManagerObserver* observer) |
| 54 : configurer_(configurer), | 56 : configurer_(configurer), |
| (...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 682 DataTypeManager::State DataTypeManagerImpl::state() const { | 684 DataTypeManager::State DataTypeManagerImpl::state() const { |
| 683 return state_; | 685 return state_; |
| 684 } | 686 } |
| 685 | 687 |
| 686 void DataTypeManagerImpl::AddToConfigureTime() { | 688 void DataTypeManagerImpl::AddToConfigureTime() { |
| 687 DCHECK(!last_restart_time_.is_null()); | 689 DCHECK(!last_restart_time_.is_null()); |
| 688 configure_time_delta_ += (base::Time::Now() - last_restart_time_); | 690 configure_time_delta_ += (base::Time::Now() - last_restart_time_); |
| 689 } | 691 } |
| 690 | 692 |
| 691 } // namespace sync_driver | 693 } // namespace sync_driver |
| OLD | NEW |