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

Unified Diff: chrome/browser/supervised_user/supervised_user_service.cc

Issue 2066493003: Revert of Sync: Support multiple setup UIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: chrome/browser/supervised_user/supervised_user_service.cc
diff --git a/chrome/browser/supervised_user/supervised_user_service.cc b/chrome/browser/supervised_user/supervised_user_service.cc
index 44a1d4a857781ea2fd860d2653d90e28e2e2bff9..0f71827875aeaaebb3c71482ecd4956c8741e3f2 100644
--- a/chrome/browser/supervised_user/supervised_user_service.cc
+++ b/chrome/browser/supervised_user/supervised_user_service.cc
@@ -682,8 +682,7 @@
void SupervisedUserService::StartSetupSync() {
// Tell the sync service that setup is in progress so we don't start syncing
// until we've finished configuration.
- sync_blocker_ = ProfileSyncServiceFactory::GetForProfile(profile_)
- ->GetSetupInProgressHandle();
+ ProfileSyncServiceFactory::GetForProfile(profile_)->SetSetupInProgress(true);
}
void SupervisedUserService::FinishSetupSyncWhenReady() {
@@ -713,7 +712,7 @@
service->OnUserChoseDatatypes(sync_everything, synced_datatypes);
// Notify ProfileSyncService that we are done with configuration.
- sync_blocker_.reset();
+ service->SetSetupInProgress(false);
service->SetFirstSetupComplete();
}
#endif
« no previous file with comments | « chrome/browser/supervised_user/supervised_user_service.h ('k') | chrome/browser/sync/profile_sync_service_android.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698