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