| Index: components/sync/engine/fake_sync_manager.cc
|
| diff --git a/components/sync/core_impl/test/fake_sync_manager.cc b/components/sync/engine/fake_sync_manager.cc
|
| similarity index 94%
|
| rename from components/sync/core_impl/test/fake_sync_manager.cc
|
| rename to components/sync/engine/fake_sync_manager.cc
|
| index 50762b4adc2c70e95d435f668c804fd3caacb361..9dc6753a0cb2b12ed98421a6462c148b95b7ad08 100644
|
| --- a/components/sync/core_impl/test/fake_sync_manager.cc
|
| +++ b/components/sync/engine/fake_sync_manager.cc
|
| @@ -2,7 +2,7 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -#include "components/sync/core/test/fake_sync_manager.h"
|
| +#include "components/sync/engine/fake_sync_manager.h"
|
|
|
| #include <cstddef>
|
|
|
| @@ -16,8 +16,8 @@
|
| #include "base/single_thread_task_runner.h"
|
| #include "base/threading/thread_task_runner_handle.h"
|
| #include "components/sync/base/weak_handle.h"
|
| -#include "components/sync/core/internal_components_factory.h"
|
| -#include "components/sync/core/test/fake_model_type_connector.h"
|
| +#include "components/sync/engine/engine_components_factory.h"
|
| +#include "components/sync/engine/fake_model_type_connector.h"
|
| #include "components/sync/engine/net/http_post_provider_factory.h"
|
| #include "components/sync/syncable/directory.h"
|
| #include "components/sync/test/fake_sync_encryption_handler.h"
|
| @@ -88,11 +88,11 @@ void FakeSyncManager::Init(InitArgs* args) {
|
| TestUserShare::CreateRoot(it.Get(), share);
|
| }
|
|
|
| - FOR_EACH_OBSERVER(
|
| - SyncManager::Observer, observers_,
|
| - OnInitializationComplete(WeakHandle<JsBackend>(),
|
| - WeakHandle<DataTypeDebugInfoListener>(), true,
|
| - initial_sync_ended_types_));
|
| + for (auto& observer : observers_) {
|
| + observer.OnInitializationComplete(WeakHandle<JsBackend>(),
|
| + WeakHandle<DataTypeDebugInfoListener>(),
|
| + true, initial_sync_ended_types_);
|
| + }
|
| }
|
|
|
| ModelTypeSet FakeSyncManager::InitialSyncEndedTypes() {
|
|
|