blob: 6f3c4a73ac4824e231bd4ef29f175f36127ae83c [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 <vector>
#include "base/macros.h"
class AccountId;
class PrefRegistrySimple;
namespace ash {
// Helper functions to remove cryptohomes of no longer existing kiosk apps.
class KioskCryptohomeRemover {
static void RegisterPrefs(PrefRegistrySimple* registry);
// Removes the cryptohomes of kiosks that were removed from policy.
static void RemoveObsoleteCryptohomes();
// Cancels the scheduled next-startup removal of the kiosk app.
static void CancelDelayedCryptohomeRemoval(const AccountId& id);
// Tries to remove cryptohomes of the list of users. For current active user,
// remembers to do so on next boot and then terminates the session.
static void RemoveCryptohomesAndExitIfNeeded(
const std::vector<AccountId>& account_ids);
} // namespace ash
// TODO( remove when the //chrome/browser/chromeos
// migration is finished.
namespace chromeos {
using ::ash::KioskCryptohomeRemover;