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

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

Issue 629603002: replace OVERRIDE and FINAL with override and final in chrome/browser/[r-z]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase on master Created 6 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 unified diff | Download patch
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 "base/observer_list.h" 9 #include "base/observer_list.h"
10 #include "components/keyed_service/content/browser_context_keyed_service_factory .h" 10 #include "components/keyed_service/content/browser_context_keyed_service_factory .h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 static SigninManager* GetForProfile(Profile* profile); 48 static SigninManager* GetForProfile(Profile* profile);
49 static SigninManager* GetForProfileIfExists(Profile* profile); 49 static SigninManager* GetForProfileIfExists(Profile* profile);
50 #endif 50 #endif
51 51
52 // Returns an instance of the SigninManagerFactory singleton. 52 // Returns an instance of the SigninManagerFactory singleton.
53 static SigninManagerFactory* GetInstance(); 53 static SigninManagerFactory* GetInstance();
54 54
55 // Implementation of BrowserContextKeyedServiceFactory (public so tests 55 // Implementation of BrowserContextKeyedServiceFactory (public so tests
56 // can call it). 56 // can call it).
57 virtual void RegisterProfilePrefs( 57 virtual void RegisterProfilePrefs(
58 user_prefs::PrefRegistrySyncable* registry) OVERRIDE; 58 user_prefs::PrefRegistrySyncable* registry) override;
59 59
60 // Registers the browser-global prefs used by SigninManager. 60 // Registers the browser-global prefs used by SigninManager.
61 static void RegisterPrefs(PrefRegistrySimple* registry); 61 static void RegisterPrefs(PrefRegistrySimple* registry);
62 62
63 // Methods to register or remove observers of SigninManager creation/shutdown. 63 // Methods to register or remove observers of SigninManager creation/shutdown.
64 void AddObserver(Observer* observer); 64 void AddObserver(Observer* observer);
65 void RemoveObserver(Observer* observer); 65 void RemoveObserver(Observer* observer);
66 66
67 // Notifies observers of |manager|'s creation. Should be called only by test 67 // Notifies observers of |manager|'s creation. Should be called only by test
68 // SigninManager subclasses whose construction does not occur in 68 // SigninManager subclasses whose construction does not occur in
69 // |BuildServiceInstanceFor()|. 69 // |BuildServiceInstanceFor()|.
70 void NotifyObserversOfSigninManagerCreationForTesting( 70 void NotifyObserversOfSigninManagerCreationForTesting(
71 SigninManagerBase* manager); 71 SigninManagerBase* manager);
72 72
73 private: 73 private:
74 friend struct DefaultSingletonTraits<SigninManagerFactory>; 74 friend struct DefaultSingletonTraits<SigninManagerFactory>;
75 75
76 SigninManagerFactory(); 76 SigninManagerFactory();
77 virtual ~SigninManagerFactory(); 77 virtual ~SigninManagerFactory();
78 78
79 // List of observers. Checks that list is empty on destruction. 79 // List of observers. Checks that list is empty on destruction.
80 mutable ObserverList<Observer, true> observer_list_; 80 mutable ObserverList<Observer, true> observer_list_;
81 81
82 // BrowserContextKeyedServiceFactory: 82 // BrowserContextKeyedServiceFactory:
83 virtual KeyedService* BuildServiceInstanceFor( 83 virtual KeyedService* BuildServiceInstanceFor(
84 content::BrowserContext* profile) const OVERRIDE; 84 content::BrowserContext* profile) const override;
85 virtual void BrowserContextShutdown(content::BrowserContext* context) 85 virtual void BrowserContextShutdown(content::BrowserContext* context)
86 OVERRIDE; 86 override;
87 }; 87 };
88 88
89 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FACTORY_H_ 89 #endif // CHROME_BROWSER_SIGNIN_SIGNIN_MANAGER_FACTORY_H_
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_global_error_unittest.cc ('k') | chrome/browser/signin/signin_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698