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

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

Issue 44083005: policy: Remove UserCloudPolicyManagerFactory's dependency on Profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 2 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/signin_manager_factory.cc
diff --git a/chrome/browser/signin/signin_manager_factory.cc b/chrome/browser/signin/signin_manager_factory.cc
index 8eb46455b8c9010c943c5f96870db4db4b99be59..811b029450bc9dd8e5b348b683b51fb0cdc3511c 100644
--- a/chrome/browser/signin/signin_manager_factory.cc
+++ b/chrome/browser/signin/signin_manager_factory.cc
@@ -24,10 +24,10 @@ SigninManagerFactory::~SigninManagerFactory() {}
#if defined(OS_CHROMEOS)
// static
-SigninManagerBase* SigninManagerFactory::GetForProfileIfExists(
- Profile* profile) {
+SigninManagerBase* SigninManagerFactory::GetForBrowserContextIfExists(
+ content::BrowserContext* context) {
return static_cast<SigninManagerBase*>(
- GetInstance()->GetServiceForBrowserContext(profile, false));
+ GetInstance()->GetServiceForBrowserContext(context, false));
}
// static
@@ -45,9 +45,10 @@ SigninManager* SigninManagerFactory::GetForProfile(Profile* profile) {
}
// static
-SigninManager* SigninManagerFactory::GetForProfileIfExists(Profile* profile) {
+SigninManager* SigninManagerFactory::GetForBrowserContextIfExists(
+ content::BrowserContext* context) {
return static_cast<SigninManager*>(
- GetInstance()->GetServiceForBrowserContext(profile, false));
+ GetInstance()->GetServiceForBrowserContext(context, false));
}
#endif

Powered by Google App Engine
This is Rietveld 408576698