| 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 "chrome/browser/chromeos/login/lock/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" | |
| 11 #include "ash/audio/sounds.h" | 10 #include "ash/audio/sounds.h" |
| 11 #include "ash/common/ash_switches.h" |
| 12 #include "ash/common/wm/window_state.h" | 12 #include "ash/common/wm/window_state.h" |
| 13 #include "ash/common/wm/wm_event.h" | 13 #include "ash/common/wm/wm_event.h" |
| 14 #include "ash/desktop_background/desktop_background_controller.h" | 14 #include "ash/desktop_background/desktop_background_controller.h" |
| 15 #include "ash/shell.h" | 15 #include "ash/shell.h" |
| 16 #include "ash/wm/lock_state_controller.h" | 16 #include "ash/wm/lock_state_controller.h" |
| 17 #include "ash/wm/window_state_aura.h" | 17 #include "ash/wm/window_state_aura.h" |
| 18 #include "ash/wm/window_util.h" | 18 #include "ash/wm/window_util.h" |
| 19 #include "base/bind.h" | 19 #include "base/bind.h" |
| 20 #include "base/command_line.h" | 20 #include "base/command_line.h" |
| 21 #include "base/lazy_instance.h" | 21 #include "base/lazy_instance.h" |
| (...skipping 515 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 537 | 537 |
| 538 bool ScreenLocker::IsUserLoggedIn(const AccountId& account_id) const { | 538 bool ScreenLocker::IsUserLoggedIn(const AccountId& account_id) const { |
| 539 for (user_manager::User* user : users_) { | 539 for (user_manager::User* user : users_) { |
| 540 if (user->GetAccountId() == account_id) | 540 if (user->GetAccountId() == account_id) |
| 541 return true; | 541 return true; |
| 542 } | 542 } |
| 543 return false; | 543 return false; |
| 544 } | 544 } |
| 545 | 545 |
| 546 } // namespace chromeos | 546 } // namespace chromeos |
| OLD | NEW |