| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" | 5 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/barrier_closure.h" | 11 #include "base/barrier_closure.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/command_line.h" | 13 #include "base/command_line.h" |
| 14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/files/file_util.h" | 15 #include "base/files/file_util.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/memory/ptr_util.h" | 17 #include "base/memory/ptr_util.h" |
| 18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
| 19 #include "base/strings/stringprintf.h" | 19 #include "base/strings/stringprintf.h" |
| 20 #include "base/sys_info.h" | 20 #include "base/sys_info.h" |
| 21 #include "base/task_scheduler/post_task.h" | 21 #include "base/task_scheduler/post_task.h" |
| 22 #include "base/threading/sequenced_worker_pool.h" |
| 22 #include "base/version.h" | 23 #include "base/version.h" |
| 23 #include "chrome/browser/browser_process.h" | 24 #include "chrome/browser/browser_process.h" |
| 24 #include "chrome/browser/chromeos/app_mode/app_session.h" | 25 #include "chrome/browser/chromeos/app_mode/app_session.h" |
| 25 #include "chrome/browser/chromeos/app_mode/kiosk_app_data.h" | 26 #include "chrome/browser/chromeos/app_mode/kiosk_app_data.h" |
| 26 #include "chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h" | 27 #include "chrome/browser/chromeos/app_mode/kiosk_app_external_loader.h" |
| 27 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager_observer.h" | 28 #include "chrome/browser/chromeos/app_mode/kiosk_app_manager_observer.h" |
| 28 #include "chrome/browser/chromeos/app_mode/kiosk_external_updater.h" | 29 #include "chrome/browser/chromeos/app_mode/kiosk_external_updater.h" |
| 29 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" | 30 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos.h" |
| 30 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact
ory.h" | 31 #include "chrome/browser/chromeos/ownership/owner_settings_service_chromeos_fact
ory.h" |
| 31 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" | 32 #include "chrome/browser/chromeos/policy/browser_policy_connector_chromeos.h" |
| (...skipping 936 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 968 base::TimeDelta KioskAppManager::GetAutoLaunchDelay() const { | 969 base::TimeDelta KioskAppManager::GetAutoLaunchDelay() const { |
| 969 int delay; | 970 int delay; |
| 970 if (!CrosSettings::Get()->GetInteger( | 971 if (!CrosSettings::Get()->GetInteger( |
| 971 kAccountsPrefDeviceLocalAccountAutoLoginDelay, &delay)) { | 972 kAccountsPrefDeviceLocalAccountAutoLoginDelay, &delay)) { |
| 972 return base::TimeDelta(); // Default delay is 0ms. | 973 return base::TimeDelta(); // Default delay is 0ms. |
| 973 } | 974 } |
| 974 return base::TimeDelta::FromMilliseconds(delay); | 975 return base::TimeDelta::FromMilliseconds(delay); |
| 975 } | 976 } |
| 976 | 977 |
| 977 } // namespace chromeos | 978 } // namespace chromeos |
| OLD | NEW |