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

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 10496010: Updated SigninManager and TokenService to generate notifications at signout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comment per review. 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 | « chrome/browser/signin/token_service.cc ('k') | chrome/browser/ui/webui/sync_setup_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 7ad73734f1988f50da35cbbf6d41d8071995195a..4ddaf6dadf56327a41c5bfd2935a018733d8450b 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -534,7 +534,7 @@ void ProfileSyncService::DisableForUser() {
// TODO(atwilson): Don't call SignOut() on *any* platform - move this into
// the UI layer if needed (sync activity should never result in the user
// being logged out of all chrome services).
- if (!auto_start_enabled_)
+ if (!auto_start_enabled_ && !signin_->GetAuthenticatedUsername().empty())
signin_->SignOut();
NotifyObservers();
« no previous file with comments | « chrome/browser/signin/token_service.cc ('k') | chrome/browser/ui/webui/sync_setup_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698