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

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

Issue 10544043: Fix ScreenLocker to not send notifications with empty passwords. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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/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(
« 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