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

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

Issue 14141006: [components] Switch {RefCounted}ProfileKeyedService to use BrowserContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: trybots 2 Created 7 years, 8 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_signin_manager.cc
diff --git a/chrome/browser/signin/fake_signin_manager.cc b/chrome/browser/signin/fake_signin_manager.cc
index b8296721106b2f2df6269d929bb2a922f91ce8d7..c313a12d1d130b5f0db2cde2aba9a0487621d508 100644
--- a/chrome/browser/signin/fake_signin_manager.cc
+++ b/chrome/browser/signin/fake_signin_manager.cc
@@ -41,8 +41,9 @@ void FakeSigninManagerBase::SignOut() {
}
// static
-ProfileKeyedService* FakeSigninManagerBase::Build(Profile* profile) {
- return new FakeSigninManagerBase(profile);
+ProfileKeyedService* FakeSigninManagerBase::Build(
+ content::BrowserContext* profile) {
+ return new FakeSigninManagerBase(static_cast<Profile*>(profile));
}
#if !defined (OS_CHROMEOS)
@@ -82,8 +83,9 @@ void FakeSigninManager::SignOut() {
}
// static
-ProfileKeyedService* FakeSigninManager::Build(Profile* profile) {
- return new FakeSigninManager(profile);
+ProfileKeyedService* FakeSigninManager::Build(
+ content::BrowserContext* profile) {
+ return new FakeSigninManager(static_cast<Profile*>(profile));
}
#endif // !defined (OS_CHROMEOS)
« no previous file with comments | « chrome/browser/signin/fake_signin_manager.h ('k') | chrome/browser/signin/profile_oauth2_token_service_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698