blob: 4b41a2e7823307fe46cceab219b98f62b6336197 [file] [log] [blame]
// Copyright 2012 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "components/sync/engine/sync_manager_factory.h"
#include "components/sync/engine/sync_manager_impl.h"
namespace syncer {
SyncManagerFactory::SyncManagerFactory(
network::NetworkConnectionTracker* network_connection_tracker)
: network_connection_tracker_(network_connection_tracker) {}
SyncManagerFactory::~SyncManagerFactory() = default;
std::unique_ptr<SyncManager> SyncManagerFactory::CreateSyncManager(
const std::string& name) {
return std::make_unique<SyncManagerImpl>(name, network_connection_tracker_);
}
} // namespace syncer