Index: chrome/browser/ui/webui/settings/people_handler.cc |
diff --git a/chrome/browser/ui/webui/settings/people_handler.cc b/chrome/browser/ui/webui/settings/people_handler.cc |
index a32d344dea3a5fb52a5cf0988ad1b163c3ef9a24..262a02d3f8b1a64fe469752f29c8bef50f8e4b25 100644 |
--- a/chrome/browser/ui/webui/settings/people_handler.cc |
+++ b/chrome/browser/ui/webui/settings/people_handler.cc |
@@ -304,7 +304,7 @@ bool PeopleHandler::PrepareSyncSetup() { |
ProfileSyncService* service = GetSyncService(); |
if (service) |
- service->SetSetupInProgress(true); |
+ setup_handle_ = service->GetSetupInProgressHandle(); |
return true; |
} |
@@ -614,8 +614,7 @@ void PeopleHandler::CloseSyncSetup() { |
// Alert the sync service anytime the sync setup dialog is closed. This can |
// happen due to the user clicking the OK or Cancel button, or due to the |
// dialog being closed by virtue of sync being disabled in the background. |
- if (sync_service) |
- sync_service->SetSetupInProgress(false); |
+ setup_handle_.reset(); |
configuring_sync_ = false; |
} |
@@ -914,7 +913,7 @@ void PeopleHandler::MarkFirstSetupComplete() { |
// We're done configuring, so notify ProfileSyncService that it is OK to |
// start syncing. |
- service->SetSetupInProgress(false); |
+ setup_handle_.reset(); |
service->SetFirstSetupComplete(); |
} |