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

Unified Diff: chrome/browser/signin/fake_profile_oauth2_token_service_builder.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/fake_profile_oauth2_token_service_builder.cc
diff --git a/chrome/browser/signin/fake_profile_oauth2_token_service_builder.cc b/chrome/browser/signin/fake_profile_oauth2_token_service_builder.cc
index 8d54b3147a143a09a0059082b7d1e921e510c1e1..90e9fe342bacca6d400622b9e8dad99aa84ce926 100644
--- a/chrome/browser/signin/fake_profile_oauth2_token_service_builder.cc
+++ b/chrome/browser/signin/fake_profile_oauth2_token_service_builder.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/signin/chrome_signin_client_factory.h"
#include "chrome/browser/signin/fake_profile_oauth2_token_service.h"
#include "chrome/browser/signin/fake_profile_oauth2_token_service_builder.h"
+#include "chrome/browser/signin/signin_error_controller_factory.h"
// TODO(blundell): Should these be namespaced?
KeyedService* BuildFakeProfileOAuth2TokenService(
@@ -13,7 +14,8 @@ KeyedService* BuildFakeProfileOAuth2TokenService(
Profile* profile = Profile::FromBrowserContext(context);
FakeProfileOAuth2TokenService* service = new FakeProfileOAuth2TokenService();
service->Initialize(
- ChromeSigninClientFactory::GetInstance()->GetForProfile(profile));
+ ChromeSigninClientFactory::GetInstance()->GetForProfile(profile),
+ SigninErrorControllerFactory::GetInstance()->GetForProfile(profile));
return service;
}
@@ -23,6 +25,7 @@ KeyedService* BuildAutoIssuingFakeProfileOAuth2TokenService(
FakeProfileOAuth2TokenService* service = new FakeProfileOAuth2TokenService();
service->set_auto_post_fetch_response_on_message_loop(true);
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