Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(381)

Side by Side Diff: chrome/browser/chromeos/login/existing_user_controller.cc

Issue 10083045: UMA for new account creation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698