| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser_sync/profile_sync_components_factory_impl.h" | 5 #include "components/browser_sync/profile_sync_components_factory_impl.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/debug/dump_without_crashing.h" | 9 #include "base/debug/dump_without_crashing.h" |
| 10 #include "base/feature_list.h" | 10 #include "base/feature_list.h" |
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 306 return new DataTypeManagerImpl(debug_info_listener, controllers, | 306 return new DataTypeManagerImpl(debug_info_listener, controllers, |
| 307 encryption_handler, backend, observer); | 307 encryption_handler, backend, observer); |
| 308 } | 308 } |
| 309 | 309 |
| 310 syncer::SyncBackendHost* | 310 syncer::SyncBackendHost* |
| 311 ProfileSyncComponentsFactoryImpl::CreateSyncBackendHost( | 311 ProfileSyncComponentsFactoryImpl::CreateSyncBackendHost( |
| 312 const std::string& name, | 312 const std::string& name, |
| 313 invalidation::InvalidationService* invalidator, | 313 invalidation::InvalidationService* invalidator, |
| 314 const base::WeakPtr<syncer::SyncPrefs>& sync_prefs, | 314 const base::WeakPtr<syncer::SyncPrefs>& sync_prefs, |
| 315 const base::FilePath& sync_folder) { | 315 const base::FilePath& sync_folder) { |
| 316 return new syncer::SyncBackendHostImpl(name, sync_client_, ui_thread_, | 316 return new syncer::SyncBackendHostImpl(name, sync_client_, invalidator, |
| 317 invalidator, sync_prefs, sync_folder); | 317 sync_prefs, sync_folder); |
| 318 } | 318 } |
| 319 | 319 |
| 320 std::unique_ptr<syncer::LocalDeviceInfoProvider> | 320 std::unique_ptr<syncer::LocalDeviceInfoProvider> |
| 321 ProfileSyncComponentsFactoryImpl::CreateLocalDeviceInfoProvider() { | 321 ProfileSyncComponentsFactoryImpl::CreateLocalDeviceInfoProvider() { |
| 322 return base::MakeUnique<syncer::LocalDeviceInfoProviderImpl>( | 322 return base::MakeUnique<syncer::LocalDeviceInfoProviderImpl>( |
| 323 channel_, version_, is_tablet_); | 323 channel_, version_, is_tablet_); |
| 324 } | 324 } |
| 325 | 325 |
| 326 class TokenServiceProvider | 326 class TokenServiceProvider |
| 327 : public OAuth2TokenServiceRequest::TokenServiceProvider { | 327 : public OAuth2TokenServiceRequest::TokenServiceProvider { |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 | 430 |
| 431 // static | 431 // static |
| 432 void ProfileSyncComponentsFactoryImpl::OverridePrefsForUssTest(bool use_uss) { | 432 void ProfileSyncComponentsFactoryImpl::OverridePrefsForUssTest(bool use_uss) { |
| 433 override_prefs_controller_to_uss_for_test_ = use_uss; | 433 override_prefs_controller_to_uss_for_test_ = use_uss; |
| 434 } | 434 } |
| 435 | 435 |
| 436 bool ProfileSyncComponentsFactoryImpl:: | 436 bool ProfileSyncComponentsFactoryImpl:: |
| 437 override_prefs_controller_to_uss_for_test_ = false; | 437 override_prefs_controller_to_uss_for_test_ = false; |
| 438 | 438 |
| 439 } // namespace browser_sync | 439 } // namespace browser_sync |
| OLD | NEW |