| 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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 // | 305 // |
| 306 | 306 |
| 307 void ExistingUserController::CancelPasswordChangedFlow() { | 307 void ExistingUserController::CancelPasswordChangedFlow() { |
| 308 login_performer_.reset(NULL); | 308 login_performer_.reset(NULL); |
| 309 login_display_->SetUIEnabled(true); | 309 login_display_->SetUIEnabled(true); |
| 310 StartPublicSessionAutoLoginTimer(); | 310 StartPublicSessionAutoLoginTimer(); |
| 311 } | 311 } |
| 312 | 312 |
| 313 void ExistingUserController::CreateAccount() { | 313 void ExistingUserController::CreateAccount() { |
| 314 content::RecordAction(base::UserMetricsAction("Login.CreateAccount")); | 314 content::RecordAction(base::UserMetricsAction("Login.CreateAccount")); |
| 315 guest_mode_url_ = | 315 guest_mode_url_ = google_util::AppendGoogleLocaleParam( |
| 316 google_util::AppendGoogleLocaleParam(GURL(kCreateAccountURL)); | 316 GURL(kCreateAccountURL), g_browser_process->GetApplicationLocale()); |
| 317 LoginAsGuest(); | 317 LoginAsGuest(); |
| 318 } | 318 } |
| 319 | 319 |
| 320 void ExistingUserController::CompleteLogin(const UserContext& user_context) { | 320 void ExistingUserController::CompleteLogin(const UserContext& user_context) { |
| 321 login_display_->set_signin_completed(true); | 321 login_display_->set_signin_completed(true); |
| 322 if (!host_) { | 322 if (!host_) { |
| 323 // Complete login event was generated already from UI. Ignore notification. | 323 // Complete login event was generated already from UI. Ignore notification. |
| 324 return; | 324 return; |
| 325 } | 325 } |
| 326 | 326 |
| (...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1113 } | 1113 } |
| 1114 | 1114 |
| 1115 void ExistingUserController::SendAccessibilityAlert( | 1115 void ExistingUserController::SendAccessibilityAlert( |
| 1116 const std::string& alert_text) { | 1116 const std::string& alert_text) { |
| 1117 AccessibilityAlertInfo event(ProfileHelper::GetSigninProfile(), alert_text); | 1117 AccessibilityAlertInfo event(ProfileHelper::GetSigninProfile(), alert_text); |
| 1118 SendControlAccessibilityNotification( | 1118 SendControlAccessibilityNotification( |
| 1119 ui::AX_EVENT_VALUE_CHANGED, &event); | 1119 ui::AX_EVENT_VALUE_CHANGED, &event); |
| 1120 } | 1120 } |
| 1121 | 1121 |
| 1122 } // namespace chromeos | 1122 } // namespace chromeos |
| OLD | NEW |