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/sequenced_task_runner.h" |
19 #include "base/strings/stringprintf.h" | 20 #include "base/strings/stringprintf.h" |
20 #include "base/sys_info.h" | 21 #include "base/sys_info.h" |
21 #include "base/task_scheduler/post_task.h" | 22 #include "base/task_scheduler/post_task.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" |
(...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
964 base::TimeDelta KioskAppManager::GetAutoLaunchDelay() const { | 965 base::TimeDelta KioskAppManager::GetAutoLaunchDelay() const { |
965 int delay; | 966 int delay; |
966 if (!CrosSettings::Get()->GetInteger( | 967 if (!CrosSettings::Get()->GetInteger( |
967 kAccountsPrefDeviceLocalAccountAutoLoginDelay, &delay)) { | 968 kAccountsPrefDeviceLocalAccountAutoLoginDelay, &delay)) { |
968 return base::TimeDelta(); // Default delay is 0ms. | 969 return base::TimeDelta(); // Default delay is 0ms. |
969 } | 970 } |
970 return base::TimeDelta::FromMilliseconds(delay); | 971 return base::TimeDelta::FromMilliseconds(delay); |
971 } | 972 } |
972 | 973 |
973 } // namespace chromeos | 974 } // namespace chromeos |
OLD | NEW |