| // 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 "chrome/browser/ash/child_accounts/time_limits/app_time_limit_interface.h" |
| |
| #include "chrome/browser/ash/child_accounts/child_user_service.h" |
| #include "chrome/browser/ash/child_accounts/child_user_service_factory.h" |
| #include "chrome/browser/profiles/profile.h" |
| |
| namespace ash { |
| namespace app_time { |
| |
| // static |
| AppTimeLimitInterface* AppTimeLimitInterface::Get(Profile* profile) { |
| return static_cast<AppTimeLimitInterface*>( |
| ChildUserServiceFactory::GetForBrowserContext(profile)); |
| } |
| |
| AppTimeLimitInterface::~AppTimeLimitInterface() = default; |
| |
| } // namespace app_time |
| } // namespace ash |