Index: chrome/browser/chromeos/login/screen_locker.cc |
diff --git a/chrome/browser/chromeos/login/screen_locker.cc b/chrome/browser/chromeos/login/screen_locker.cc |
index 58984a0e0a476345284959b0e0936139f0e2529f..6dfc62e87d24edb065d6f46cced71bd77581f0e3 100644 |
--- a/chrome/browser/chromeos/login/screen_locker.cc |
+++ b/chrome/browser/chromeos/login/screen_locker.cc |
@@ -186,10 +186,10 @@ void ScreenLocker::OnLoginSuccess( |
} |
Profile* profile = ProfileManager::GetDefaultProfile(); |
- if (profile) { |
- ProfileSyncService* service( |
- ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile)); |
- if (service && !service->HasSyncSetupCompleted()) { |
+ if (profile && !password.empty()) { |
Nikita (slow)
2012/06/07 09:43:59
How could you end up in this state with empty pass
Andrew T Wilson (Slow)
2012/06/07 17:22:42
Here is what Bartosz reported to me:
-=-=-=-
Barto
|
+ // If we have a non-empty password, notify listeners (such as the sync |
+ // engine). |
+ if (!password.empty()) { |
Nikita (slow)
2012/06/07 09:43:59
Why do you need another check for empty password a
Andrew T Wilson (Slow)
2012/06/07 17:22:42
Bah, I moved the check up above but forgot to remo
|
SigninManager* signin = SigninManagerFactory::GetForProfile(profile); |
DCHECK(signin); |
GoogleServiceSigninSuccessDetails details( |