Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: ash/system/chromeos/session/last_window_closed_logout_reminder.cc

Issue 2056823002: mash: Move SystemTrayDelegate and dependencies to //ash/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/system/chromeos/session/last_window_closed_logout_reminder.h" 5 #include "ash/system/chromeos/session/last_window_closed_logout_reminder.h"
6 6
7 #include "ash/common/system/tray/system_tray_delegate.h"
7 #include "ash/shell.h" 8 #include "ash/shell.h"
8 #include "ash/system/chromeos/session/logout_confirmation_controller.h" 9 #include "ash/system/chromeos/session/logout_confirmation_controller.h"
9 #include "ash/system/tray/system_tray_delegate.h"
10 #include "ash/system/tray/system_tray_notifier.h" 10 #include "ash/system/tray/system_tray_notifier.h"
11 #include "ash/system/user/login_status.h" 11 #include "ash/system/user/login_status.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 13
14 namespace ash { 14 namespace ash {
15 namespace { 15 namespace {
16 const int kLogoutConfirmationDelayInSeconds = 20; 16 const int kLogoutConfirmationDelayInSeconds = 20;
17 } 17 }
18 18
19 LastWindowClosedLogoutReminder::LastWindowClosedLogoutReminder() { 19 LastWindowClosedLogoutReminder::LastWindowClosedLogoutReminder() {
(...skipping 13 matching lines...) Expand all
33 } 33 }
34 34
35 // Ask the user to confirm logout if a public session is in progress and the 35 // Ask the user to confirm logout if a public session is in progress and the
36 // screen is not locked. 36 // screen is not locked.
37 Shell::GetInstance()->logout_confirmation_controller()->ConfirmLogout( 37 Shell::GetInstance()->logout_confirmation_controller()->ConfirmLogout(
38 base::TimeTicks::Now() + 38 base::TimeTicks::Now() +
39 base::TimeDelta::FromSeconds(kLogoutConfirmationDelayInSeconds)); 39 base::TimeDelta::FromSeconds(kLogoutConfirmationDelayInSeconds));
40 } 40 }
41 41
42 } // namespace ash 42 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/chromeos/rotation/tray_rotation_lock_unittest.cc ('k') | ash/system/chromeos/session/logout_button_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698