blob: 29678b9eb31355468d0d28e065a8858191d2fc73 [file] [log] [blame]
// Copyright 2023 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/supervised_user/chromeos/chromeos_utils.h"
#include "base/notreached.h"
#include "chromeos/crosapi/mojom/parent_access.mojom.h"
#if BUILDFLAG(IS_CHROMEOS_ASH)
#include "chrome/browser/ash/crosapi/crosapi_ash.h"
#include "chrome/browser/ash/crosapi/crosapi_manager.h"
#include "chrome/browser/ash/crosapi/parent_access_ash.h"
#endif // BUILDFLAG(IS_CHROMEOS_ASH)
namespace supervised_user {
crosapi::mojom::ParentAccess* GetParentAccessApi() {
#if BUILDFLAG(IS_CHROMEOS_ASH)
return crosapi::CrosapiManager::Get()->crosapi_ash()->parent_access_ash();
#else
NOTREACHED();
#endif
}
} // namespace supervised_user