| 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 "sync/internal_api/public/test/fake_sync_manager.h" | 5 #include "sync/internal_api/public/test/fake_sync_manager.h" |
| 6 | 6 |
| 7 #include <cstddef> | 7 #include <cstddef> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 bool use_ssl, | 104 bool use_ssl, |
| 105 const scoped_refptr<base::TaskRunner>& blocking_task_runner, | 105 const scoped_refptr<base::TaskRunner>& blocking_task_runner, |
| 106 scoped_ptr<HttpPostProviderFactory> post_factory, | 106 scoped_ptr<HttpPostProviderFactory> post_factory, |
| 107 const std::vector<ModelSafeWorker*>& workers, | 107 const std::vector<ModelSafeWorker*>& workers, |
| 108 ExtensionsActivityMonitor* extensions_activity_monitor, | 108 ExtensionsActivityMonitor* extensions_activity_monitor, |
| 109 ChangeDelegate* change_delegate, | 109 ChangeDelegate* change_delegate, |
| 110 const SyncCredentials& credentials, | 110 const SyncCredentials& credentials, |
| 111 scoped_ptr<SyncNotifier> sync_notifier, | 111 scoped_ptr<SyncNotifier> sync_notifier, |
| 112 const std::string& restored_key_for_bootstrapping, | 112 const std::string& restored_key_for_bootstrapping, |
| 113 const std::string& restored_keystore_key_for_bootstrapping, | 113 const std::string& restored_keystore_key_for_bootstrapping, |
| 114 bool keystore_encryption_enabled, | |
| 115 scoped_ptr<InternalComponentsFactory> internal_components_factory, | 114 scoped_ptr<InternalComponentsFactory> internal_components_factory, |
| 116 Encryptor* encryptor, | 115 Encryptor* encryptor, |
| 117 UnrecoverableErrorHandler* unrecoverable_error_handler, | 116 UnrecoverableErrorHandler* unrecoverable_error_handler, |
| 118 ReportUnrecoverableErrorFunction | 117 ReportUnrecoverableErrorFunction |
| 119 report_unrecoverable_error_function) { | 118 report_unrecoverable_error_function) { |
| 120 sync_task_runner_ = base::ThreadTaskRunnerHandle::Get(); | 119 sync_task_runner_ = base::ThreadTaskRunnerHandle::Get(); |
| 121 PurgePartiallySyncedTypes(); | 120 PurgePartiallySyncedTypes(); |
| 122 FOR_EACH_OBSERVER(SyncManager::Observer, observers_, | 121 FOR_EACH_OBSERVER(SyncManager::Observer, observers_, |
| 123 OnInitializationComplete( | 122 OnInitializationComplete( |
| 124 syncer::WeakHandle<syncer::JsBackend>(), | 123 syncer::WeakHandle<syncer::JsBackend>(), |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 registrar_.EmitOnNotificationsEnabled(); | 293 registrar_.EmitOnNotificationsEnabled(); |
| 295 } | 294 } |
| 296 | 295 |
| 297 void FakeSyncManager::DisableNotificationsOnSyncThread( | 296 void FakeSyncManager::DisableNotificationsOnSyncThread( |
| 298 NotificationsDisabledReason reason) { | 297 NotificationsDisabledReason reason) { |
| 299 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); | 298 DCHECK(sync_task_runner_->RunsTasksOnCurrentThread()); |
| 300 registrar_.EmitOnNotificationsDisabled(reason); | 299 registrar_.EmitOnNotificationsDisabled(reason); |
| 301 } | 300 } |
| 302 | 301 |
| 303 } // namespace syncer | 302 } // namespace syncer |
| OLD | NEW |