Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(79)

Unified Diff: chrome/browser/signin/profile_oauth2_token_service_factory.cc

Issue 809313009: Make the SigninErrorController a PKS. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unnecessary header Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/signin/profile_oauth2_token_service_factory.cc
diff --git a/chrome/browser/signin/profile_oauth2_token_service_factory.cc b/chrome/browser/signin/profile_oauth2_token_service_factory.cc
index 14c76ac20edc8e20562151c28f0e10d45be6eb15..60d4e83c535a47fdf00dbf6139b09a4208bacf43 100644
--- a/chrome/browser/signin/profile_oauth2_token_service_factory.cc
+++ b/chrome/browser/signin/profile_oauth2_token_service_factory.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/signin/chrome_signin_client_factory.h"
+#include "chrome/browser/signin/signin_error_controller_factory.h"
#include "chrome/browser/ui/global_error/global_error_service_factory.h"
#include "chrome/browser/webdata/web_data_service_factory.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
@@ -24,6 +25,7 @@ ProfileOAuth2TokenServiceFactory::ProfileOAuth2TokenServiceFactory()
DependsOn(GlobalErrorServiceFactory::GetInstance());
DependsOn(WebDataServiceFactory::GetInstance());
DependsOn(ChromeSigninClientFactory::GetInstance());
+ DependsOn(SigninErrorControllerFactory::GetInstance());
}
ProfileOAuth2TokenServiceFactory::~ProfileOAuth2TokenServiceFactory() {
@@ -55,6 +57,7 @@ KeyedService* ProfileOAuth2TokenServiceFactory::BuildServiceInstanceFor(
PlatformSpecificOAuth2TokenService* service =
new PlatformSpecificOAuth2TokenService();
service->Initialize(
- ChromeSigninClientFactory::GetInstance()->GetForProfile(profile));
+ ChromeSigninClientFactory::GetInstance()->GetForProfile(profile),
+ SigninErrorControllerFactory::GetInstance()->GetForProfile(profile));
return service;
}

Powered by Google App Engine
This is Rietveld 408576698