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

Unified Diff: components/browser_sync/browser/profile_sync_service.cc

Issue 2126923002: [Sync] Stop purging sync data on restart for users who haven't finished setup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 5 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 | components/browser_sync/browser/profile_sync_service_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/browser_sync/browser/profile_sync_service.cc
diff --git a/components/browser_sync/browser/profile_sync_service.cc b/components/browser_sync/browser/profile_sync_service.cc
index 782f56c947264696e8a039d7868ff8ff8a09f06f..3906c5e6e489271c0e393ea858c10faa8cf9c91b 100644
--- a/components/browser_sync/browser/profile_sync_service.cc
+++ b/components/browser_sync/browser/profile_sync_service.cc
@@ -354,8 +354,8 @@ void ProfileSyncService::Initialize() {
RegisterAuthNotifications();
- if (!IsFirstSetupComplete() || !IsSignedIn()) {
- // Clean up in case of previous crash / setup abort / signout.
+ if (!IsSignedIn()) {
+ // Clean up in case of previous crash during signout.
StopImpl(CLEAR_DATA);
}
« no previous file with comments | « no previous file | components/browser_sync/browser/profile_sync_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698