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

Unified Diff: sync/sessions/sync_session_context.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 5 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 | « sync/sessions/sync_session_context.h ('k') | sync/sessions/test_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/sessions/sync_session_context.cc
diff --git a/sync/sessions/sync_session_context.cc b/sync/sessions/sync_session_context.cc
deleted file mode 100644
index d9d30983b2d57055ff6a17cf1648dab5a83e29d8..0000000000000000000000000000000000000000
--- a/sync/sessions/sync_session_context.cc
+++ /dev/null
@@ -1,55 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "sync/sessions/sync_session_context.h"
-
-#include "sync/sessions/debug_info_getter.h"
-#include "sync/util/extensions_activity.h"
-
-namespace syncer {
-namespace sessions {
-
-SyncSessionContext::SyncSessionContext(
- ServerConnectionManager* connection_manager,
- syncable::Directory* directory,
- ExtensionsActivity* extensions_activity,
- const std::vector<SyncEngineEventListener*>& listeners,
- DebugInfoGetter* debug_info_getter,
- ModelTypeRegistry* model_type_registry,
- bool keystore_encryption_enabled,
- bool client_enabled_pre_commit_update_avoidance,
- const std::string& invalidator_client_id)
- : connection_manager_(connection_manager),
- directory_(directory),
- extensions_activity_(extensions_activity),
- notifications_enabled_(false),
- max_commit_batch_size_(kDefaultMaxCommitBatchSize),
- debug_info_getter_(debug_info_getter),
- model_type_registry_(model_type_registry),
- keystore_encryption_enabled_(keystore_encryption_enabled),
- invalidator_client_id_(invalidator_client_id),
- server_enabled_pre_commit_update_avoidance_(false),
- client_enabled_pre_commit_update_avoidance_(
- client_enabled_pre_commit_update_avoidance),
- cookie_jar_mismatch_(false),
- cookie_jar_empty_(false) {
- std::vector<SyncEngineEventListener*>::const_iterator it;
- for (it = listeners.begin(); it != listeners.end(); ++it)
- listeners_.AddObserver(*it);
-}
-
-SyncSessionContext::~SyncSessionContext() {
-}
-
-ModelTypeSet SyncSessionContext::GetEnabledTypes() const {
- return model_type_registry_->GetEnabledTypes();
-}
-
-void SyncSessionContext::SetRoutingInfo(
- const ModelSafeRoutingInfo& routing_info) {
- model_type_registry_->SetEnabledDirectoryTypes(routing_info);
-}
-
-} // namespace sessions
-} // namespace syncer
« no previous file with comments | « sync/sessions/sync_session_context.h ('k') | sync/sessions/test_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698