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

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: for review 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 fcb2dc0ae0752fa8b01342d90f47385f84f3ec50..f1e5d455fd283e8fddfd4cdb22a9f2fc1ea72a57 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)
@@ -87,8 +88,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)

Powered by Google App Engine
This is Rietveld 408576698