1 // Copyright 2019 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "chrome/browser/chromeos/child_accounts/time_limits/app_time_limit_interface.h" 6 7 #include "chrome/browser/chromeos/child_accounts/child_user_service.h" 8 #include "chrome/browser/chromeos/child_accounts/child_user_service_factory.h" 9 #include "chrome/browser/profiles/profile.h" 10 11 namespace chromeos { 12 namespace app_time { 13 14 // static Get(Profile * profile)15AppTimeLimitInterface* AppTimeLimitInterface::Get(Profile* profile) { 16 return static_cast<AppTimeLimitInterface*>( 17 ChildUserServiceFactory::GetForBrowserContext(profile)); 18 } 19 20 AppTimeLimitInterface::~AppTimeLimitInterface() = default; 21 22 } // namespace app_time 23 } // namespace chromeos 24