blob: 09b949a4d1d9a1bfae7e143cd81a389e0206b24c [file] [log] [blame]
// Copyright 2018 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 "chromeos/services/device_sync/cryptauth_enroller_factory_impl.h"
#include <memory>
#include "chromeos/services/device_sync/cryptauth_enroller_impl.h"
#include "components/cryptauth/secure_message_delegate_impl.h"
namespace chromeos {
namespace device_sync {
CryptAuthEnrollerFactoryImpl::CryptAuthEnrollerFactoryImpl(
CryptAuthClientFactory* cryptauth_client_factory)
: cryptauth_client_factory_(cryptauth_client_factory) {}
CryptAuthEnrollerFactoryImpl::~CryptAuthEnrollerFactoryImpl() = default;
std::unique_ptr<CryptAuthEnroller>
CryptAuthEnrollerFactoryImpl::CreateInstance() {
return std::make_unique<CryptAuthEnrollerImpl>(
cryptauth_client_factory_,
cryptauth::SecureMessageDelegateImpl::Factory::NewInstance());
}
} // namespace device_sync
} // namespace chromeos