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

Unified Diff: chrome/browser/chromeos/login/login_utils.cc

Issue 7049002: Move the check to detect first login before adding the User to the UserManager (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code Review Fix Created 9 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/login_utils.cc
diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc
index 9567b9fe5289ad5ba82cbf58d2d45ee20f4ba5cb..42e3d375ef0b1466c1bfc095bdc170d77fdf3c11 100644
--- a/chrome/browser/chromeos/login/login_utils.cc
+++ b/chrome/browser/chromeos/login/login_utils.cc
@@ -244,7 +244,6 @@ void LoginUtilsImpl::OnProfileCreated(Profile* profile) {
BootTimesLoader* btl = BootTimesLoader::Get();
btl->AddLoginTimeMarker("UserProfileGotten", false);
- bool first_login = !UserManager::Get()->IsKnownUser(username_);
// Change the proxy configuration service of the default request context to
// use the preference configuration from the logged-in profile. This ensures
// that requests done through the default context use the proxy configuration
@@ -320,7 +319,7 @@ void LoginUtilsImpl::OnProfileCreated(Profile* profile) {
RespectLocalePreference(profile);
- if (first_login) {
+ if (UserManager::Get()->current_user_is_new()) {
SetFirstLoginPrefs(profile->GetPrefs());
}
« 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