blob: 35c6b776ac6b2979d8d8f36fd2230317eb7ab05b [file] [log] [blame]
// Copyright 2019 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_enrollment_scheduler.h"
namespace chromeos {
namespace device_sync {
CryptAuthEnrollmentScheduler::CryptAuthEnrollmentScheduler(Delegate* delegate)
: delegate_(delegate) {
DCHECK(delegate);
}
CryptAuthEnrollmentScheduler::~CryptAuthEnrollmentScheduler() = default;
void CryptAuthEnrollmentScheduler::NotifyEnrollmentRequested(
const base::Optional<cryptauthv2::PolicyReference>&
client_directive_policy_reference) const {
delegate_->OnEnrollmentRequested(client_directive_policy_reference);
}
} // namespace device_sync
} // namespace chromeos