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

Side by Side Diff: components/signin/core/browser/signin_manager.cc

Issue 466043002: Track when user signs in the profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 4 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/signin/core/browser/signin_manager.h" 5 #include "components/signin/core/browser/signin_manager.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 SetAuthenticatedUsername(username); 356 SetAuthenticatedUsername(username);
357 possibly_invalid_username_.clear(); 357 possibly_invalid_username_.clear();
358 358
359 FOR_EACH_OBSERVER( 359 FOR_EACH_OBSERVER(
360 Observer, 360 Observer,
361 observer_list_, 361 observer_list_,
362 GoogleSigninSucceeded(GetAuthenticatedUsername(), password_)); 362 GoogleSigninSucceeded(GetAuthenticatedUsername(), password_));
363 363
364 client_->GoogleSigninSucceeded(GetAuthenticatedUsername(), password_); 364 client_->GoogleSigninSucceeded(GetAuthenticatedUsername(), password_);
365 365
366 signin_metrics::LogSigninProfile(client_->IsFirstRun(),
367 client_->GetInstallDate());
368
366 password_.clear(); // Don't need it anymore. 369 password_.clear(); // Don't need it anymore.
367 DisableOneClickSignIn(client_->GetPrefs()); // Don't ever offer again. 370 DisableOneClickSignIn(client_->GetPrefs()); // Don't ever offer again.
368 } 371 }
369 372
370 void SigninManager::ProhibitSignout(bool prohibit_signout) { 373 void SigninManager::ProhibitSignout(bool prohibit_signout) {
371 prohibit_signout_ = prohibit_signout; 374 prohibit_signout_ = prohibit_signout;
372 } 375 }
373 376
374 bool SigninManager::IsSignoutProhibited() const { return prohibit_signout_; } 377 bool SigninManager::IsSignoutProhibited() const { return prohibit_signout_; }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698