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

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

Issue 1308823002: Move Singleton and related structs to namespace base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ToT Created 5 years, 3 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 #include "chrome/browser/signin/signin_manager_factory.h" 5 #include "chrome/browser/signin/signin_manager_factory.h"
6 6
7 #include "base/prefs/pref_registry_simple.h" 7 #include "base/prefs/pref_registry_simple.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/signin/account_tracker_service_factory.h" 10 #include "chrome/browser/signin/account_tracker_service_factory.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 const SigninManager* SigninManagerFactory::GetForProfileIfExists( 67 const SigninManager* SigninManagerFactory::GetForProfileIfExists(
68 const Profile* profile) { 68 const Profile* profile) {
69 return static_cast<const SigninManager*>( 69 return static_cast<const SigninManager*>(
70 GetInstance()->GetServiceForBrowserContext( 70 GetInstance()->GetServiceForBrowserContext(
71 const_cast<Profile*>(profile), false)); 71 const_cast<Profile*>(profile), false));
72 } 72 }
73 #endif 73 #endif
74 74
75 // static 75 // static
76 SigninManagerFactory* SigninManagerFactory::GetInstance() { 76 SigninManagerFactory* SigninManagerFactory::GetInstance() {
77 return Singleton<SigninManagerFactory>::get(); 77 return base::Singleton<SigninManagerFactory>::get();
78 } 78 }
79 79
80 void SigninManagerFactory::RegisterProfilePrefs( 80 void SigninManagerFactory::RegisterProfilePrefs(
81 user_prefs::PrefRegistrySyncable* registry) { 81 user_prefs::PrefRegistrySyncable* registry) {
82 SigninManagerBase::RegisterProfilePrefs(registry); 82 SigninManagerBase::RegisterProfilePrefs(registry);
83 LocalAuth::RegisterLocalAuthPrefs(registry); 83 LocalAuth::RegisterLocalAuthPrefs(registry);
84 } 84 }
85 85
86 // static 86 // static
87 void SigninManagerFactory::RegisterPrefs(PrefRegistrySimple* registry) { 87 void SigninManagerFactory::RegisterPrefs(PrefRegistrySimple* registry) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 124 }
125 125
126 void SigninManagerFactory::BrowserContextShutdown( 126 void SigninManagerFactory::BrowserContextShutdown(
127 content::BrowserContext* context) { 127 content::BrowserContext* context) {
128 SigninManagerBase* manager = static_cast<SigninManagerBase*>( 128 SigninManagerBase* manager = static_cast<SigninManagerBase*>(
129 GetServiceForBrowserContext(context, false)); 129 GetServiceForBrowserContext(context, false));
130 if (manager) 130 if (manager)
131 FOR_EACH_OBSERVER(Observer, observer_list_, SigninManagerShutdown(manager)); 131 FOR_EACH_OBSERVER(Observer, observer_list_, SigninManagerShutdown(manager));
132 BrowserContextKeyedServiceFactory::BrowserContextShutdown(context); 132 BrowserContextKeyedServiceFactory::BrowserContextShutdown(context);
133 } 133 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/signin_manager_factory.h ('k') | chrome/browser/speech/extension_api/tts_engine_extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698