| 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 259 NOTREACHED() << "More than one controller are alive."; | 259 NOTREACHED() << "More than one controller are alive."; |
| 260 } | 260 } |
| 261 DCHECK(login_display_.get()); | 261 DCHECK(login_display_.get()); |
| 262 } | 262 } |
| 263 | 263 |
| 264 //////////////////////////////////////////////////////////////////////////////// | 264 //////////////////////////////////////////////////////////////////////////////// |
| 265 // ExistingUserController, LoginDisplay::Delegate implementation: | 265 // ExistingUserController, LoginDisplay::Delegate implementation: |
| 266 // | 266 // |
| 267 | 267 |
| 268 void ExistingUserController::CreateAccount() { | 268 void ExistingUserController::CreateAccount() { |
| 269 UMA_HISTOGRAM_CUSTOM_COUNTS("Login.CreateAccount", 1, 1, 2, 3); |
| 269 guest_mode_url_ = | 270 guest_mode_url_ = |
| 270 google_util::AppendGoogleLocaleParam(GURL(kCreateAccountURL)); | 271 google_util::AppendGoogleLocaleParam(GURL(kCreateAccountURL)); |
| 271 LoginAsGuest(); | 272 LoginAsGuest(); |
| 272 } | 273 } |
| 273 | 274 |
| 274 string16 ExistingUserController::GetConnectedNetworkName() { | 275 string16 ExistingUserController::GetConnectedNetworkName() { |
| 275 return GetCurrentNetworkName(CrosLibrary::Get()->GetNetworkLibrary()); | 276 return GetCurrentNetworkName(CrosLibrary::Get()->GetNetworkLibrary()); |
| 276 } | 277 } |
| 277 | 278 |
| 278 void ExistingUserController::SetDisplayEmail(const std::string& email) { | 279 void ExistingUserController::SetDisplayEmail(const std::string& email) { |
| (...skipping 497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 // Invalidate OAuth token, since it can't be correct after password is | 777 // Invalidate OAuth token, since it can't be correct after password is |
| 777 // changed. | 778 // changed. |
| 778 UserManager::Get()->SaveUserOAuthStatus(username, | 779 UserManager::Get()->SaveUserOAuthStatus(username, |
| 779 User::OAUTH_TOKEN_STATUS_INVALID); | 780 User::OAUTH_TOKEN_STATUS_INVALID); |
| 780 | 781 |
| 781 login_display_->SetUIEnabled(true); | 782 login_display_->SetUIEnabled(true); |
| 782 login_display_->ShowGaiaPasswordChanged(username); | 783 login_display_->ShowGaiaPasswordChanged(username); |
| 783 } | 784 } |
| 784 | 785 |
| 785 } // namespace chromeos | 786 } // namespace chromeos |
| OLD | NEW |