diff options
Diffstat (limited to 'chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc')
-rw-r--r-- | chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc b/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc index 1ec58e8..b638cdc 100644 --- a/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc +++ b/chrome/browser/ui/webui/sync_promo/sync_promo_handler2.cc @@ -11,6 +11,7 @@ #include "chrome/browser/prefs/pref_service.h" #include "chrome/browser/profiles/profile.h" #include "chrome/browser/sync/profile_sync_service.h" +#include "chrome/browser/sync/profile_sync_service_factory.h" #include "chrome/browser/sync/sync_setup_flow.h" #include "chrome/browser/tabs/tab_strip_model.h" #include "chrome/browser/ui/browser.h" @@ -182,7 +183,8 @@ void SyncPromoHandler2::Observe(int type, void SyncPromoHandler2::StepWizardForShowSetupUI() { ProfileSyncService* service = - Profile::FromWebUI(web_ui_)->GetProfileSyncService(); + ProfileSyncServiceFactory::GetInstance()->GetForProfile( + Profile::FromWebUI(web_ui_)); service->get_wizard().Step(SyncSetupWizard::GetLoginState()); } |