| Index: chrome/browser/chromeos/login/login_utils.cc
|
| diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc
|
| index e3ef041327e7d885ee675749552f89c140f64d98..91bc5a3c3f561526531a14fa775ef6899e1dae0c 100644
|
| --- a/chrome/browser/chromeos/login/login_utils.cc
|
| +++ b/chrome/browser/chromeos/login/login_utils.cc
|
| @@ -54,6 +54,7 @@
|
| #include "chrome/browser/signin/signin_manager_factory.h"
|
| #include "chrome/browser/signin/token_service.h"
|
| #include "chrome/browser/sync/profile_sync_service.h"
|
| +#include "chrome/browser/sync/profile_sync_service_factory.h"
|
| #include "chrome/browser/ui/browser_init.h"
|
| #include "chrome/common/chrome_paths.h"
|
| #include "chrome/common/chrome_switches.h"
|
| @@ -910,7 +911,8 @@ void LoginUtilsImpl::StartSignedInServices(
|
| initialized = true;
|
| // Pass the updated passphrase to the sync service for use in decrypting
|
| // data encrypted with the user's GAIA password.
|
| - ProfileSyncService* sync_service = user_profile->GetProfileSyncService();
|
| + ProfileSyncService* sync_service =
|
| + ProfileSyncServiceFactory::GetInstance()->GetForProfile(user_profile);
|
| if (sync_service)
|
| sync_service->SetPassphrase(password_, false);
|
| }
|
|
|