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/login/screen_locker.h" | 5 #include "chrome/browser/chromeos/login/lock/screen_locker.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "ash/ash_switches.h" | 10 #include "ash/ash_switches.h" |
11 #include "ash/audio/sounds.h" | 11 #include "ash/audio/sounds.h" |
12 #include "ash/desktop_background/desktop_background_controller.h" | 12 #include "ash/desktop_background/desktop_background_controller.h" |
13 #include "ash/shell.h" | 13 #include "ash/shell.h" |
14 #include "ash/wm/lock_state_controller.h" | 14 #include "ash/wm/lock_state_controller.h" |
15 #include "ash/wm/window_state.h" | 15 #include "ash/wm/window_state.h" |
16 #include "ash/wm/window_util.h" | 16 #include "ash/wm/window_util.h" |
17 #include "ash/wm/wm_event.h" | 17 #include "ash/wm/wm_event.h" |
18 #include "base/bind.h" | 18 #include "base/bind.h" |
19 #include "base/command_line.h" | 19 #include "base/command_line.h" |
20 #include "base/lazy_instance.h" | 20 #include "base/lazy_instance.h" |
21 #include "base/memory/weak_ptr.h" | 21 #include "base/memory/weak_ptr.h" |
22 #include "base/message_loop/message_loop.h" | 22 #include "base/message_loop/message_loop.h" |
23 #include "base/metrics/histogram.h" | 23 #include "base/metrics/histogram.h" |
24 #include "base/strings/string_number_conversions.h" | 24 #include "base/strings/string_number_conversions.h" |
25 #include "base/strings/string_util.h" | 25 #include "base/strings/string_util.h" |
26 #include "base/timer/timer.h" | 26 #include "base/timer/timer.h" |
27 #include "chrome/browser/chrome_notification_types.h" | 27 #include "chrome/browser/chrome_notification_types.h" |
28 #include "chrome/browser/chromeos/login/authenticator.h" | 28 #include "chrome/browser/chromeos/login/auth/authenticator.h" |
29 #include "chrome/browser/chromeos/login/extended_authenticator.h" | 29 #include "chrome/browser/chromeos/login/auth/extended_authenticator.h" |
30 #include "chrome/browser/chromeos/login/login_performer.h" | 30 #include "chrome/browser/chromeos/login/auth/login_performer.h" |
| 31 #include "chrome/browser/chromeos/login/lock/webui_screen_locker.h" |
31 #include "chrome/browser/chromeos/login/login_utils.h" | 32 #include "chrome/browser/chromeos/login/login_utils.h" |
32 #include "chrome/browser/chromeos/login/managed/supervised_user_authentication.h
" | 33 #include "chrome/browser/chromeos/login/managed/supervised_user_authentication.h
" |
33 #include "chrome/browser/chromeos/login/supervised_user_manager.h" | 34 #include "chrome/browser/chromeos/login/ui/user_adding_screen.h" |
34 #include "chrome/browser/chromeos/login/user_adding_screen.h" | 35 #include "chrome/browser/chromeos/login/users/supervised_user_manager.h" |
35 #include "chrome/browser/chromeos/login/user_manager.h" | 36 #include "chrome/browser/chromeos/login/users/user_manager.h" |
36 #include "chrome/browser/chromeos/login/webui_screen_locker.h" | |
37 #include "chrome/browser/extensions/api/screenlock_private/screenlock_private_ap
i.h" | 37 #include "chrome/browser/extensions/api/screenlock_private/screenlock_private_ap
i.h" |
38 #include "chrome/browser/lifetime/application_lifetime.h" | 38 #include "chrome/browser/lifetime/application_lifetime.h" |
39 #include "chrome/browser/profiles/profile.h" | 39 #include "chrome/browser/profiles/profile.h" |
40 #include "chrome/browser/profiles/profile_manager.h" | 40 #include "chrome/browser/profiles/profile_manager.h" |
41 #include "chrome/browser/signin/signin_manager_factory.h" | 41 #include "chrome/browser/signin/signin_manager_factory.h" |
42 #include "chrome/browser/sync/profile_sync_service.h" | 42 #include "chrome/browser/sync/profile_sync_service.h" |
43 #include "chrome/browser/sync/profile_sync_service_factory.h" | 43 #include "chrome/browser/sync/profile_sync_service_factory.h" |
44 #include "chrome/browser/ui/webui/chromeos/login/screenlock_icon_provider.h" | 44 #include "chrome/browser/ui/webui/chromeos/login/screenlock_icon_provider.h" |
45 #include "chrome/browser/ui/webui/chromeos/login/screenlock_icon_source.h" | 45 #include "chrome/browser/ui/webui/chromeos/login/screenlock_icon_source.h" |
46 #include "chrome/common/chrome_switches.h" | 46 #include "chrome/common/chrome_switches.h" |
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
598 | 598 |
599 bool ScreenLocker::IsUserLoggedIn(const std::string& username) { | 599 bool ScreenLocker::IsUserLoggedIn(const std::string& username) { |
600 for (UserList::const_iterator it = users_.begin(); it != users_.end(); ++it) { | 600 for (UserList::const_iterator it = users_.begin(); it != users_.end(); ++it) { |
601 if ((*it)->email() == username) | 601 if ((*it)->email() == username) |
602 return true; | 602 return true; |
603 } | 603 } |
604 return false; | 604 return false; |
605 } | 605 } |
606 | 606 |
607 } // namespace chromeos | 607 } // namespace chromeos |
OLD | NEW |