| Index: chrome/browser/chromeos/login/screen_locker.cc
|
| diff --git a/chrome/browser/chromeos/login/screen_locker.cc b/chrome/browser/chromeos/login/screen_locker.cc
|
| index cb624e65d728f13a3654436063c18ca07102b07b..0cefd3b8126635fc62866bfa6970c4163014835b 100644
|
| --- a/chrome/browser/chromeos/login/screen_locker.cc
|
| +++ b/chrome/browser/chromeos/login/screen_locker.cc
|
| @@ -32,6 +32,7 @@
|
| #include "chrome/browser/profiles/profile_manager.h"
|
| #include "chrome/browser/signin/signin_manager.h"
|
| #include "chrome/browser/sync/profile_sync_service.h"
|
| +#include "chrome/browser/sync/profile_sync_service_factory.h"
|
| #include "chrome/browser/ui/browser.h"
|
| #include "chrome/browser/ui/browser_list.h"
|
| #include "chrome/browser/ui/browser_window.h"
|
| @@ -264,7 +265,8 @@ void ScreenLocker::OnLoginSuccess(
|
|
|
| Profile* profile = ProfileManager::GetDefaultProfile();
|
| if (profile) {
|
| - ProfileSyncService* service = profile->GetProfileSyncService();
|
| + ProfileSyncService* service(
|
| + ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile));
|
| if (service && !service->HasSyncSetupCompleted()) {
|
| // If sync has failed somehow, try setting the sync passphrase here.
|
| service->SetPassphrase(password, false);
|
|
|