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

Unified Diff: components/sync/core_impl/sync_manager_impl.cc

Issue 2408463002: [Sync] Move network-related code from core/ to engine/net/. (Closed)
Patch Set: Use SyncServerConnectionManager instead of ServerConnectionManagerImpl. 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
Index: components/sync/core_impl/sync_manager_impl.cc
diff --git a/components/sync/core_impl/sync_manager_impl.cc b/components/sync/core_impl/sync_manager_impl.cc
index 9e251ae7dbe14f1ffdf91a57eb34fad346bf7ed3..580991b01b9f93ca6a4c7640185df08ab3572e1f 100644
--- a/components/sync/core_impl/sync_manager_impl.cc
+++ b/components/sync/core_impl/sync_manager_impl.cc
@@ -26,7 +26,6 @@
#include "components/sync/base/model_type.h"
#include "components/sync/core/base_node.h"
#include "components/sync/core/configure_reason.h"
-#include "components/sync/core/http_post_provider_factory.h"
#include "components/sync/core/internal_components_factory.h"
#include "components/sync/core/read_node.h"
#include "components/sync/core/read_transaction.h"
@@ -34,9 +33,10 @@
#include "components/sync/core/write_transaction.h"
#include "components/sync/core_impl/model_type_connector_proxy.h"
#include "components/sync/core_impl/syncapi_internal.h"
-#include "components/sync/core_impl/syncapi_server_connection_manager.h"
+#include "components/sync/engine/net/http_post_provider_factory.h"
#include "components/sync/engine/polling_constants.h"
#include "components/sync/engine_impl/cycle/directory_type_debug_info_emitter.h"
+#include "components/sync/engine_impl/net/sync_server_connection_manager.h"
#include "components/sync/engine_impl/sync_scheduler.h"
#include "components/sync/engine_impl/syncer_types.h"
#include "components/sync/protocol/proto_value_conversions.h"
@@ -281,7 +281,7 @@ void SyncManagerImpl::Init(InitArgs* args) {
args->saved_nigori_state.reset();
}
- connection_manager_.reset(new SyncAPIServerConnectionManager(
+ connection_manager_.reset(new SyncServerConnectionManager(
args->service_url.host() + args->service_url.path(),
args->service_url.EffectiveIntPort(),
args->service_url.SchemeIsCryptographic(), args->post_factory.release(),
« no previous file with comments | « components/sync/core_impl/sync_manager_impl.h ('k') | components/sync/core_impl/sync_manager_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698