| 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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 | 132 |
| 133 //////////////////////////////////////////////////////////////////////////////// | 133 //////////////////////////////////////////////////////////////////////////////// |
| 134 // ExistingUserController, public: | 134 // ExistingUserController, public: |
| 135 | 135 |
| 136 ExistingUserController::ExistingUserController(LoginDisplayHost* host) | 136 ExistingUserController::ExistingUserController(LoginDisplayHost* host) |
| 137 : auth_status_consumer_(NULL), | 137 : auth_status_consumer_(NULL), |
| 138 host_(host), | 138 host_(host), |
| 139 login_display_(host_->CreateLoginDisplay(this)), | 139 login_display_(host_->CreateLoginDisplay(this)), |
| 140 num_login_attempts_(0), | 140 num_login_attempts_(0), |
| 141 cros_settings_(CrosSettings::Get()), | 141 cros_settings_(CrosSettings::Get()), |
| 142 weak_factory_(this), | |
| 143 offline_failed_(false), | 142 offline_failed_(false), |
| 144 is_login_in_progress_(false), | 143 is_login_in_progress_(false), |
| 145 password_changed_(false), | 144 password_changed_(false), |
| 146 auth_mode_(LoginPerformer::AUTH_MODE_EXTENSION), | 145 auth_mode_(LoginPerformer::AUTH_MODE_EXTENSION), |
| 147 do_auto_enrollment_(false), | 146 do_auto_enrollment_(false), |
| 148 signin_screen_ready_(false), | 147 signin_screen_ready_(false), |
| 149 network_state_helper_(new login::NetworkStateHelper) { | 148 network_state_helper_(new login::NetworkStateHelper), |
| 149 weak_factory_(this) { |
| 150 DCHECK(current_controller_ == NULL); | 150 DCHECK(current_controller_ == NULL); |
| 151 current_controller_ = this; | 151 current_controller_ = this; |
| 152 | 152 |
| 153 registrar_.Add(this, | 153 registrar_.Add(this, |
| 154 chrome::NOTIFICATION_LOGIN_USER_IMAGE_CHANGED, | 154 chrome::NOTIFICATION_LOGIN_USER_IMAGE_CHANGED, |
| 155 content::NotificationService::AllSources()); | 155 content::NotificationService::AllSources()); |
| 156 registrar_.Add(this, | 156 registrar_.Add(this, |
| 157 chrome::NOTIFICATION_USER_LIST_CHANGED, | 157 chrome::NOTIFICATION_USER_LIST_CHANGED, |
| 158 content::NotificationService::AllSources()); | 158 content::NotificationService::AllSources()); |
| 159 registrar_.Add(this, | 159 registrar_.Add(this, |
| (...skipping 1094 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1254 // Only one instance of LoginPerformer should exist at a time. | 1254 // Only one instance of LoginPerformer should exist at a time. |
| 1255 login_performer_.reset(NULL); | 1255 login_performer_.reset(NULL); |
| 1256 login_performer_.reset(new LoginPerformer(this)); | 1256 login_performer_.reset(new LoginPerformer(this)); |
| 1257 is_login_in_progress_ = true; | 1257 is_login_in_progress_ = true; |
| 1258 login_performer_->LoginAsPublicSession(user_context); | 1258 login_performer_->LoginAsPublicSession(user_context); |
| 1259 SendAccessibilityAlert( | 1259 SendAccessibilityAlert( |
| 1260 l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_LOGIN_SIGNIN_PUBLIC_ACCOUNT)); | 1260 l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_LOGIN_SIGNIN_PUBLIC_ACCOUNT)); |
| 1261 } | 1261 } |
| 1262 | 1262 |
| 1263 } // namespace chromeos | 1263 } // namespace chromeos |
| OLD | NEW |