| Index: chrome/browser/signin/chrome_signin_client_factory.cc
|
| diff --git a/chrome/browser/signin/chrome_signin_client_factory.cc b/chrome/browser/signin/chrome_signin_client_factory.cc
|
| index 11ba30672a453c4ef88b6d29de83cd4986dd3cbe..38de748059a475daa6b4a5f0e766d28cf6883b52 100644
|
| --- a/chrome/browser/signin/chrome_signin_client_factory.cc
|
| +++ b/chrome/browser/signin/chrome_signin_client_factory.cc
|
| @@ -5,12 +5,15 @@
|
| #include "chrome/browser/signin/chrome_signin_client_factory.h"
|
|
|
| #include "chrome/browser/profiles/profile.h"
|
| +#include "chrome/browser/signin/signin_error_controller_factory.h"
|
| #include "components/keyed_service/content/browser_context_dependency_manager.h"
|
|
|
| ChromeSigninClientFactory::ChromeSigninClientFactory()
|
| : BrowserContextKeyedServiceFactory(
|
| "ChromeSigninClient",
|
| - BrowserContextDependencyManager::GetInstance()) {}
|
| + BrowserContextDependencyManager::GetInstance()) {
|
| + DependsOn(SigninErrorControllerFactory::GetInstance());
|
| +}
|
|
|
| ChromeSigninClientFactory::~ChromeSigninClientFactory() {}
|
|
|
| @@ -27,7 +30,8 @@ ChromeSigninClientFactory* ChromeSigninClientFactory::GetInstance() {
|
|
|
| KeyedService* ChromeSigninClientFactory::BuildServiceInstanceFor(
|
| content::BrowserContext* context) const {
|
| - ChromeSigninClient* client =
|
| - new ChromeSigninClient(static_cast<Profile*>(context));
|
| + Profile* profile = static_cast<Profile*>(context);
|
| + ChromeSigninClient* client = new ChromeSigninClient(
|
| + profile, SigninErrorControllerFactory::GetForProfile(profile));
|
| return client;
|
| }
|
|
|