OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/kiosk_mode/kiosk_mode_settings.h" | 5 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.h" | 13 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_screensaver.h" |
14 #include "chrome/browser/chromeos/login/user_manager.h" | 14 #include "chrome/browser/chromeos/login/user_manager.h" |
15 #include "chrome/browser/chromeos/settings/cros_settings.h" | 15 #include "chrome/browser/chromeos/settings/cros_settings.h" |
16 #include "chrome/browser/lifetime/application_lifetime.h" | 16 #include "chrome/browser/lifetime/application_lifetime.h" |
17 #include "chrome/browser/policy/browser_policy_connector.h" | 17 #include "chrome/browser/policy/browser_policy_connector.h" |
18 #include "chrome/browser/policy/cloud/cloud_policy_constants.h" | |
19 #include "chromeos/chromeos_switches.h" | 18 #include "chromeos/chromeos_switches.h" |
20 #include "chromeos/settings/cros_settings_names.h" | 19 #include "chromeos/settings/cros_settings_names.h" |
| 20 #include "components/policy/core/common/cloud/cloud_policy_constants.h" |
21 #include "content/public/browser/browser_thread.h" | 21 #include "content/public/browser/browser_thread.h" |
22 | 22 |
23 namespace chromeos { | 23 namespace chromeos { |
24 | 24 |
25 namespace { | 25 namespace { |
26 const int kDeviceModeFetchRetryDelayMs = 500; | 26 const int kDeviceModeFetchRetryDelayMs = 500; |
27 } | 27 } |
28 | 28 |
29 const int KioskModeSettings::kMaxIdleLogoutTimeout = 600000; // ms | 29 const int KioskModeSettings::kMaxIdleLogoutTimeout = 600000; // ms |
30 const int KioskModeSettings::kMinIdleLogoutTimeout = 5000; // ms | 30 const int KioskModeSettings::kMinIdleLogoutTimeout = 5000; // ms |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 chrome::ExitCleanly(); | 198 chrome::ExitCleanly(); |
199 break; | 199 break; |
200 default: | 200 default: |
201 break; | 201 break; |
202 } | 202 } |
203 } | 203 } |
204 } | 204 } |
205 | 205 |
206 | 206 |
207 } // namespace chromeos | 207 } // namespace chromeos |
OLD | NEW |