| 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_idle_logout.h" | 5 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_idle_logout.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/lazy_instance.h" | 8 #include "base/lazy_instance.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
| 11 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" | |
| 12 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" | 11 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" |
| 13 #include "chrome/browser/chromeos/dbus/power_manager_client.h" | |
| 14 #include "chrome/browser/chromeos/ui/idle_logout_dialog_view.h" | 12 #include "chrome/browser/chromeos/ui/idle_logout_dialog_view.h" |
| 15 #include "chrome/common/chrome_notification_types.h" | 13 #include "chrome/common/chrome_notification_types.h" |
| 14 #include "chromeos/dbus/dbus_thread_manager.h" |
| 15 #include "chromeos/dbus/power_manager_client.h" |
| 16 #include "content/public/browser/notification_observer.h" | 16 #include "content/public/browser/notification_observer.h" |
| 17 #include "content/public/browser/notification_registrar.h" | 17 #include "content/public/browser/notification_registrar.h" |
| 18 #include "content/public/browser/notification_service.h" | 18 #include "content/public/browser/notification_service.h" |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 | 21 |
| 22 const int64 kLoginIdleTimeout = 100; // seconds | 22 const int64 kLoginIdleTimeout = 100; // seconds |
| 23 | 23 |
| 24 } // namespace | 24 } // namespace |
| 25 | 25 |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 } | 91 } |
| 92 | 92 |
| 93 static base::LazyInstance<KioskModeIdleLogout> | 93 static base::LazyInstance<KioskModeIdleLogout> |
| 94 g_kiosk_mode_idle_logout = LAZY_INSTANCE_INITIALIZER; | 94 g_kiosk_mode_idle_logout = LAZY_INSTANCE_INITIALIZER; |
| 95 | 95 |
| 96 void InitializeKioskModeIdleLogout() { | 96 void InitializeKioskModeIdleLogout() { |
| 97 g_kiosk_mode_idle_logout.Get(); | 97 g_kiosk_mode_idle_logout.Get(); |
| 98 } | 98 } |
| 99 | 99 |
| 100 } // namespace chromeos | 100 } // namespace chromeos |
| OLD | NEW |