| Index: chrome/browser/ui/webui/options/options_sync_setup_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/options_sync_setup_handler.cc b/chrome/browser/ui/webui/options/options_sync_setup_handler.cc
|
| index 75f916650a4c16bb982fbd3aa5e4023a6ac66b2d..c0a52bf551917ea4f87cf2f8c392a092855b2e1c 100644
|
| --- a/chrome/browser/ui/webui/options/options_sync_setup_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/options_sync_setup_handler.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/sync/profile_sync_service.h"
|
| +#include "chrome/browser/sync/profile_sync_service_factory.h"
|
| #include "content/public/browser/web_ui.h"
|
|
|
| OptionsSyncSetupHandler::OptionsSyncSetupHandler(
|
| @@ -16,8 +17,8 @@ OptionsSyncSetupHandler::~OptionsSyncSetupHandler() {
|
| }
|
|
|
| void OptionsSyncSetupHandler::StepWizardForShowSetupUI() {
|
| - ProfileSyncService* service =
|
| - Profile::FromWebUI(web_ui())->GetProfileSyncService();
|
| + ProfileSyncService* service(ProfileSyncServiceFactory::
|
| + GetInstance()->GetForProfile(Profile::FromWebUI(web_ui())));
|
| DCHECK(service);
|
|
|
| // We should bring up either a login or a configure flow based on the state of
|
|
|