| 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/existing_user_controller.h" | 5 #include "chrome/browser/chromeos/login/existing_user_controller.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 EasyUnlockService::Get(ProfileHelper::GetSigninProfile()); | 125 EasyUnlockService::Get(ProfileHelper::GetSigninProfile()); |
| 126 if (user_context.GetUserType() == user_manager::USER_TYPE_REGULAR && | 126 if (user_context.GetUserType() == user_manager::USER_TYPE_REGULAR && |
| 127 user_context.GetAuthFlow() == UserContext::AUTH_FLOW_OFFLINE && | 127 user_context.GetAuthFlow() == UserContext::AUTH_FLOW_OFFLINE && |
| 128 easy_unlock_service) { | 128 easy_unlock_service) { |
| 129 easy_unlock_service->RecordPasswordLoginEvent(user_context.GetUserID()); | 129 easy_unlock_service->RecordPasswordLoginEvent(user_context.GetUserID()); |
| 130 } | 130 } |
| 131 } | 131 } |
| 132 | 132 |
| 133 bool CanShowDebuggingFeatures() { | 133 bool CanShowDebuggingFeatures() { |
| 134 // We need to be on the login screen and in dev mode to show this menu item. | 134 // We need to be on the login screen and in dev mode to show this menu item. |
| 135 return CommandLine::ForCurrentProcess()->HasSwitch( | 135 return base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 136 chromeos::switches::kSystemDevMode) && | 136 chromeos::switches::kSystemDevMode) && |
| 137 CommandLine::ForCurrentProcess()->HasSwitch( | 137 base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 138 chromeos::switches::kLoginManager) && | 138 chromeos::switches::kLoginManager) && |
| 139 !user_manager::UserManager::Get()->IsSessionStarted(); | 139 !user_manager::UserManager::Get()->IsSessionStarted(); |
| 140 } | 140 } |
| 141 | 141 |
| 142 } // namespace | 142 } // namespace |
| 143 | 143 |
| 144 // static | 144 // static |
| 145 ExistingUserController* ExistingUserController::current_controller_ = NULL; | 145 ExistingUserController* ExistingUserController::current_controller_ = NULL; |
| 146 | 146 |
| 147 //////////////////////////////////////////////////////////////////////////////// | 147 //////////////////////////////////////////////////////////////////////////////// |
| (...skipping 975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1123 is_login_in_progress_ = false; | 1123 is_login_in_progress_ = false; |
| 1124 | 1124 |
| 1125 // Reenable clicking on other windows and status area. | 1125 // Reenable clicking on other windows and status area. |
| 1126 login_display_->SetUIEnabled(true); | 1126 login_display_->SetUIEnabled(true); |
| 1127 | 1127 |
| 1128 if (start_public_session_timer) | 1128 if (start_public_session_timer) |
| 1129 StartPublicSessionAutoLoginTimer(); | 1129 StartPublicSessionAutoLoginTimer(); |
| 1130 } | 1130 } |
| 1131 | 1131 |
| 1132 } // namespace chromeos | 1132 } // namespace chromeos |
| OLD | NEW |