diff options
author | Ben Murdoch <benm@google.com> | 2014-04-03 12:29:45 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2014-04-03 12:29:45 +0100 |
commit | e5d81f57cb97b3b6b7fccc9c5610d21eb81db09d (patch) | |
tree | f266aab56db899073b21c1edd1d0e00055b9a2cf /chrome/browser/signin/about_signin_internals_factory.cc | |
parent | 67e8dac6e410a019f58fc452b262a184e8e7fd12 (diff) | |
download | chromium_org-e5d81f57cb97b3b6b7fccc9c5610d21eb81db09d.tar.gz |
Merge from Chromium at DEPS revision 261286
This commit was generated by merge_to_master.py.
Change-Id: Iea9643ce91618057f128e9a5b62c07be152f2b89
Diffstat (limited to 'chrome/browser/signin/about_signin_internals_factory.cc')
-rw-r--r-- | chrome/browser/signin/about_signin_internals_factory.cc | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/chrome/browser/signin/about_signin_internals_factory.cc b/chrome/browser/signin/about_signin_internals_factory.cc index 453ee835fa..504f7303e4 100644 --- a/chrome/browser/signin/about_signin_internals_factory.cc +++ b/chrome/browser/signin/about_signin_internals_factory.cc @@ -6,11 +6,14 @@ #include "base/prefs/pref_service.h" #include "chrome/browser/profiles/profile.h" -#include "chrome/browser/signin/about_signin_internals.h" +#include "chrome/browser/signin/chrome_signin_client_factory.h" #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" +#include "chrome/browser/signin/signin_manager_factory.h" #include "chrome/common/pref_names.h" #include "components/keyed_service/content/browser_context_dependency_manager.h" +#include "components/signin/core/browser/about_signin_internals.h" #include "components/signin/core/browser/signin_internals_util.h" +#include "components/signin/core/browser/signin_manager.h" #include "components/user_prefs/pref_registry_syncable.h" #include "google_apis/gaia/gaia_constants.h" @@ -22,6 +25,7 @@ AboutSigninInternalsFactory::AboutSigninInternalsFactory() BrowserContextDependencyManager::GetInstance()) { DependsOn(SigninManagerFactory::GetInstance()); DependsOn(ProfileOAuth2TokenServiceFactory::GetInstance()); + DependsOn(ChromeSigninClientFactory::GetInstance()); } AboutSigninInternalsFactory::~AboutSigninInternalsFactory() {} @@ -66,8 +70,11 @@ void AboutSigninInternalsFactory::RegisterProfilePrefs( } KeyedService* AboutSigninInternalsFactory::BuildServiceInstanceFor( - content::BrowserContext* profile) const { - AboutSigninInternals* service = new AboutSigninInternals(); - service->Initialize(static_cast<Profile*>(profile)); + content::BrowserContext* context) const { + Profile* profile = Profile::FromBrowserContext(context); + AboutSigninInternals* service = new AboutSigninInternals( + ProfileOAuth2TokenServiceFactory::GetForProfile(profile), + SigninManagerFactory::GetForProfile(profile)); + service->Initialize(ChromeSigninClientFactory::GetForProfile(profile)); return service; } |