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

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

Issue 605483002: [Sync] Fix sync backup for supervised users (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index a23f96e15951b9072bede72ef2dc340e608df217..ffcbbc461ad43d68a260237aa745a21234d19168 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -328,8 +328,11 @@ void ProfileSyncService::Initialize() {
if (browser_sync::BackupRollbackController::IsBackupEnabled()) {
// Backup is needed if user's not signed in or signed in but previous
// backup didn't finish, i.e. backend didn't switch from backup to sync.
- need_backup_ = signin_->GetEffectiveUsername().empty() ||
- sync_prefs_.GetFirstSyncTime().is_null();
+ // Note that backup is never performed for supervised users (which always
+ // start with a fresh profile anyways).
+ need_backup_ = (signin_->GetEffectiveUsername().empty() ||
Marc Treib 2014/09/25 09:31:51 If you want to exclude supervised users, I think i
Nicolas Zea 2014/09/26 01:26:48 Unfortunately I don't think that will work. The fi
+ sync_prefs_.GetFirstSyncTime().is_null()) &&
+ !profile_->IsSupervised();
// Try to resume rollback if it didn't finish in last session.
running_rollback = backup_rollback_controller_.StartRollback();
« 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