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

Unified Diff: components/sync/engine_impl/cycle/sync_cycle_context.cc

Issue 2258873003: [Sync] Move sessions/ to engine/cycle/ and rename things to match. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments. Created 4 years, 4 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
Index: components/sync/engine_impl/cycle/sync_cycle_context.cc
diff --git a/components/sync/sessions_impl/sync_session_context.cc b/components/sync/engine_impl/cycle/sync_cycle_context.cc
similarity index 82%
rename from components/sync/sessions_impl/sync_session_context.cc
rename to components/sync/engine_impl/cycle/sync_cycle_context.cc
index 52553713ae97a87113b45eac38ce6532af4dda30..7f6c7e087077c31d66d00f1a41527d30a4779cc9 100644
--- a/components/sync/sessions_impl/sync_session_context.cc
+++ b/components/sync/engine_impl/cycle/sync_cycle_context.cc
@@ -2,15 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/sync/sessions_impl/sync_session_context.h"
+#include "components/sync/engine_impl/cycle/sync_cycle_context.h"
#include "components/sync/base/extensions_activity.h"
-#include "components/sync/sessions_impl/debug_info_getter.h"
+#include "components/sync/engine_impl/cycle/debug_info_getter.h"
namespace syncer {
-namespace sessions {
-SyncSessionContext::SyncSessionContext(
+SyncCycleContext::SyncCycleContext(
ServerConnectionManager* connection_manager,
syncable::Directory* directory,
ExtensionsActivity* extensions_activity,
@@ -39,16 +38,15 @@ SyncSessionContext::SyncSessionContext(
listeners_.AddObserver(*it);
}
-SyncSessionContext::~SyncSessionContext() {}
+SyncCycleContext::~SyncCycleContext() {}
-ModelTypeSet SyncSessionContext::GetEnabledTypes() const {
+ModelTypeSet SyncCycleContext::GetEnabledTypes() const {
return model_type_registry_->GetEnabledTypes();
}
-void SyncSessionContext::SetRoutingInfo(
+void SyncCycleContext::SetRoutingInfo(
const ModelSafeRoutingInfo& routing_info) {
model_type_registry_->SetEnabledDirectoryTypes(routing_info);
}
-} // namespace sessions
} // namespace syncer
« no previous file with comments | « components/sync/engine_impl/cycle/sync_cycle_context.h ('k') | components/sync/engine_impl/cycle/test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698