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

Side by Side Diff: chrome/browser/signin/signin_manager_factory.h

Issue 18199003: Allow Chrome OS login profile to have different default pref values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FACTORY_H_ 5 #ifndef CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FACTORY_H_
6 #define CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FACTORY_H_ 6 #define CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FACTORY_H_
7 7
8 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
9 #include "components/browser_context_keyed_service/browser_context_keyed_service _factory.h" 9 #include "components/browser_context_keyed_service/browser_context_keyed_service _factory.h"
10 10
(...skipping 23 matching lines...) Expand all
34 // an instance of the extended SigninManager class. 34 // an instance of the extended SigninManager class.
35 static SigninManager* GetForProfile(Profile* profile); 35 static SigninManager* GetForProfile(Profile* profile);
36 static SigninManager* GetForProfileIfExists(Profile* profile); 36 static SigninManager* GetForProfileIfExists(Profile* profile);
37 #endif 37 #endif
38 38
39 // Returns an instance of the SigninManagerFactory singleton. 39 // Returns an instance of the SigninManagerFactory singleton.
40 static SigninManagerFactory* GetInstance(); 40 static SigninManagerFactory* GetInstance();
41 41
42 // Implementation of BrowserContextKeyedServiceFactory (public so tests 42 // Implementation of BrowserContextKeyedServiceFactory (public so tests
43 // can call it). 43 // can call it).
44 virtual void RegisterUserPrefs( 44 virtual void RegisterProfilePrefs(
45 user_prefs::PrefRegistrySyncable* registry) OVERRIDE; 45 user_prefs::PrefRegistrySyncable* registry) OVERRIDE;
46 46
47 // Registers the browser-global prefs used by SigninManager. 47 // Registers the browser-global prefs used by SigninManager.
48 static void RegisterPrefs(PrefRegistrySimple* registry); 48 static void RegisterPrefs(PrefRegistrySimple* registry);
49 49
50 private: 50 private:
51 friend struct DefaultSingletonTraits<SigninManagerFactory>; 51 friend struct DefaultSingletonTraits<SigninManagerFactory>;
52 52
53 SigninManagerFactory(); 53 SigninManagerFactory();
54 virtual ~SigninManagerFactory(); 54 virtual ~SigninManagerFactory();
55 55
56 // BrowserContextKeyedServiceFactory: 56 // BrowserContextKeyedServiceFactory:
57 virtual BrowserContextKeyedService* BuildServiceInstanceFor( 57 virtual BrowserContextKeyedService* BuildServiceInstanceFor(
58 content::BrowserContext* profile) const OVERRIDE; 58 content::BrowserContext* profile) const OVERRIDE;
59 }; 59 };
60 60
61 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FACTORY_H_ 61 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/about_signin_internals_factory.cc ('k') | chrome/browser/signin/signin_manager_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698