Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: components/sync/engine/fake_sync_manager.cc

Issue 2413313004: [Sync] Move the last things out of core/. (Closed)
Patch Set: Address comments. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/sync/engine/fake_sync_manager.h ('k') | components/sync/engine/model_type_connector.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « components/sync/engine/fake_sync_manager.h ('k') | components/sync/engine/model_type_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698