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

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

Issue 1143323005: Refactor AO2TS to make it easier to componentize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactor AO2TS to make it easier to componentize. Created 5 years, 7 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 90e9fe342bacca6d400622b9e8dad99aa84ce926..22003cc4a4736a306fcfd954d7b0a0c003234741 100644
--- a/chrome/browser/signin/fake_profile_oauth2_token_service_builder.cc
+++ b/chrome/browser/signin/fake_profile_oauth2_token_service_builder.cc
@@ -11,21 +11,22 @@
// TODO(blundell): Should these be namespaced?
KeyedService* BuildFakeProfileOAuth2TokenService(
content::BrowserContext* context) {
- Profile* profile = Profile::FromBrowserContext(context);
+ // Profile* profile = Profile::FromBrowserContext(context);
FakeProfileOAuth2TokenService* service = new FakeProfileOAuth2TokenService();
- service->Initialize(
- ChromeSigninClientFactory::GetInstance()->GetForProfile(profile),
- SigninErrorControllerFactory::GetInstance()->GetForProfile(profile));
+ // service->Initialize(
+ // ChromeSigninClientFactory::GetInstance()->GetForProfile(profile),
+ // SigninErrorControllerFactory::GetInstance()->GetForProfile(profile));
return service;
}
KeyedService* BuildAutoIssuingFakeProfileOAuth2TokenService(
content::BrowserContext* context) {
- Profile* profile = Profile::FromBrowserContext(context);
+ // Profile* profile = Profile::FromBrowserContext(context);
FakeProfileOAuth2TokenService* service = new FakeProfileOAuth2TokenService();
- service->set_auto_post_fetch_response_on_message_loop(true);
- service->Initialize(
- ChromeSigninClientFactory::GetInstance()->GetForProfile(profile),
- SigninErrorControllerFactory::GetInstance()->GetForProfile(profile));
+ // service->set_auto_post_fetch_response_on_message_loop(true);
+ // service->Initialize(
+ // ChromeSigninClientFactory::GetInstance()->GetForProfile(profile),
+ //
+ // SigninErrorControllerFactory::GetInstance()->GetForProfile(profile));
return service;
}

Powered by Google App Engine
This is Rietveld 408576698