| Index: chrome/browser/ui/sync/one_click_signin_sync_starter.cc
|
| diff --git a/chrome/browser/ui/sync/one_click_signin_sync_starter.cc b/chrome/browser/ui/sync/one_click_signin_sync_starter.cc
|
| index 8aeb723f22347631056d6a4e50d7e40feea652df..b3fe4cdd0664558a12aaf4b6f263a22c05567092 100644
|
| --- a/chrome/browser/ui/sync/one_click_signin_sync_starter.cc
|
| +++ b/chrome/browser/ui/sync/one_click_signin_sync_starter.cc
|
| @@ -133,7 +133,7 @@ void OneClickSigninSyncStarter::Initialize(Profile* profile, Browser* browser) {
|
| // syncing until the user has finished any configuration.
|
| ProfileSyncService* profile_sync_service = GetProfileSyncService();
|
| if (profile_sync_service)
|
| - profile_sync_service->SetSetupInProgress(true);
|
| + setup_handle_ = profile_sync_service->GetSetupInProgressHandle();
|
|
|
| // Make sure the syncing is requested, otherwise the SigninManager
|
| // will not be able to complete successfully.
|
| @@ -615,10 +615,7 @@ ProfileSyncService* OneClickSigninSyncStarter::GetProfileSyncService() {
|
| }
|
|
|
| void OneClickSigninSyncStarter::FinishProfileSyncServiceSetup() {
|
| - ProfileSyncService* service =
|
| - ProfileSyncServiceFactory::GetForProfile(profile_);
|
| - if (service)
|
| - service->SetSetupInProgress(false);
|
| + setup_handle_.reset();
|
| }
|
|
|
| void OneClickSigninSyncStarter::ShowSettingsPageInWebContents(
|
|
|