OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ash/common/system/chromeos/session/logout_confirmation_controller.h" | 5 #include "ash/system/session/logout_confirmation_controller.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "ash/common/login_status.h" | 9 #include "ash/common/login_status.h" |
10 #include "ash/common/system/chromeos/session/logout_confirmation_dialog.h" | |
11 #include "ash/common/system/tray/system_tray_delegate.h" | |
12 #include "ash/common/system/tray/system_tray_notifier.h" | |
13 #include "ash/common/wm_shell.h" | 10 #include "ash/common/wm_shell.h" |
| 11 #include "ash/system/session/logout_confirmation_dialog.h" |
| 12 #include "ash/system/tray/system_tray_delegate.h" |
| 13 #include "ash/system/tray/system_tray_notifier.h" |
14 #include "base/location.h" | 14 #include "base/location.h" |
15 #include "base/time/default_tick_clock.h" | 15 #include "base/time/default_tick_clock.h" |
16 #include "base/time/tick_clock.h" | 16 #include "base/time/tick_clock.h" |
17 #include "ui/views/widget/widget.h" | 17 #include "ui/views/widget/widget.h" |
18 | 18 |
19 namespace ash { | 19 namespace ash { |
20 namespace { | 20 namespace { |
21 const int kLogoutConfirmationDelayInSeconds = 20; | 21 const int kLogoutConfirmationDelayInSeconds = 20; |
22 } | 22 } |
23 | 23 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 } | 99 } |
100 | 100 |
101 // Ask the user to confirm logout if a public session is in progress and the | 101 // Ask the user to confirm logout if a public session is in progress and the |
102 // screen is not locked. | 102 // screen is not locked. |
103 ConfirmLogout( | 103 ConfirmLogout( |
104 base::TimeTicks::Now() + | 104 base::TimeTicks::Now() + |
105 base::TimeDelta::FromSeconds(kLogoutConfirmationDelayInSeconds)); | 105 base::TimeDelta::FromSeconds(kLogoutConfirmationDelayInSeconds)); |
106 } | 106 } |
107 | 107 |
108 } // namespace ash | 108 } // namespace ash |
OLD | NEW |