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

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: Change UMA declaration 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 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
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