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

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

Issue 12502017: signin: pull basic SigninManager functionality into new SigninManagerBase class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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.h
diff --git a/chrome/browser/signin/signin_manager_factory.h b/chrome/browser/signin/signin_manager_factory.h
index 7cb2b81f3f4d34ee9e3b4632b2e2d6a1b4a71594..878d28f56bbf5fb26c025ba18f82d645d4995e4e 100644
--- a/chrome/browser/signin/signin_manager_factory.h
+++ b/chrome/browser/signin/signin_manager_factory.h
@@ -9,6 +9,7 @@
#include "chrome/browser/profiles/profile_keyed_service_factory.h"
class SigninManager;
+class SigninManagerBase;
class PrefRegistrySimple;
class PrefRegistrySyncable;
class Profile;
@@ -21,11 +22,20 @@ class SigninManagerFactory : public ProfileKeyedServiceFactory {
// Returns the instance of SigninManager associated with this profile
// (creating one if none exists). Returns NULL if this profile cannot have a
// SigninManager (for example, if |profile| is incognito).
- static SigninManager* GetForProfile(Profile* profile);
+ static SigninManagerBase* GetBaseForProfile(Profile* profile);
Roger Tawa OOO till Jul 10th 2013/03/27 17:36:33 Instead of two methods GetBaseForProfile() and Get
tim (not reviewing) 2013/03/29 18:03:16 Right I noticed the vast majority of callsites jus
// Returns the instance of SigninManager associated with this profile. Returns
// null if no SigninManager instance currently exists (will not create a new
// instance).
+ static SigninManagerBase* GetBaseForProfileIfExists(Profile* profile);
+
+ // On non-ChromeOS platforms, the SigninManager the factory creates will be
+ // an instance of the extended SigninManager class.
+ //
+ // TODO(tim): Make the above statement true in BuildServiceInstanceFor, and
+ // rename these (to e.g GetExtendedForProfile) and ifdef out on chrome os.
Roger Tawa OOO till Jul 10th 2013/03/27 17:36:33 Why change BuildServiceInstanceFor() in a second s
tim (not reviewing) 2013/03/29 18:03:16 I wanted to split it up to avoid a massive CL mixe
+ // Most callers should use SigninManagerBase.
+ static SigninManager* GetForProfile(Profile* profile);
static SigninManager* GetForProfileIfExists(Profile* profile);
// Returns an instance of the SigninManagerFactory singleton.

Powered by Google App Engine
This is Rietveld 408576698