123456789101112131415161718192021222324 |
- // Copyright 2020 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.
- #ifndef ASH_COMPONENTS_TPM_PREPARE_TPM_H_
- #define ASH_COMPONENTS_TPM_PREPARE_TPM_H_
- #include "base/callback.h"
- #include "base/component_export.h"
- namespace ash {
- // Asynchronously prepares TPM. To be specific, attempts to clear owner
- // password if TPM is owned to make sure the owner password is cleared if no
- // longer needed; otherwise if TPM is not owned, which can happen due to
- // interrupted TPM initialization triggered upon showing EULA screen, triggers
- // TPM initialization process. When the preparation process is done, invoke
- // `preparation_finished_callback`.
- void COMPONENT_EXPORT(ASH_COMPONENTS_TPM)
- PrepareTpm(base::OnceClosure preparation_finished_callback);
- } // namespace ash
- #endif // ASH_COMPONENTS_TPM_PREPARE_TPM_H_
|