OLD | NEW |
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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 prefs::kReverseAutologinEnabled, | 96 prefs::kReverseAutologinEnabled, |
97 true, | 97 true, |
98 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 98 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
99 registry->RegisterListPref(prefs::kReverseAutologinRejectedEmailList, | 99 registry->RegisterListPref(prefs::kReverseAutologinRejectedEmailList, |
100 new base::ListValue, | 100 new base::ListValue, |
101 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 101 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
102 registry->RegisterInt64Pref( | 102 registry->RegisterInt64Pref( |
103 prefs::kSignedInTime, | 103 prefs::kSignedInTime, |
104 base::Time().ToInternalValue(), | 104 base::Time().ToInternalValue(), |
105 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); | 105 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); |
106 chrome::RegisterLocalAuthPrefs(registry); | 106 LocalAuth::RegisterLocalAuthPrefs(registry); |
107 } | 107 } |
108 | 108 |
109 // static | 109 // static |
110 void SigninManagerFactory::RegisterPrefs(PrefRegistrySimple* registry) { | 110 void SigninManagerFactory::RegisterPrefs(PrefRegistrySimple* registry) { |
111 registry->RegisterStringPref(prefs::kGoogleServicesUsernamePattern, | 111 registry->RegisterStringPref(prefs::kGoogleServicesUsernamePattern, |
112 std::string()); | 112 std::string()); |
113 } | 113 } |
114 | 114 |
115 void SigninManagerFactory::AddObserver(Observer* observer) { | 115 void SigninManagerFactory::AddObserver(Observer* observer) { |
116 observer_list_.AddObserver(observer); | 116 observer_list_.AddObserver(observer); |
(...skipping 28 matching lines...) Expand all Loading... |
145 } | 145 } |
146 | 146 |
147 void SigninManagerFactory::BrowserContextShutdown( | 147 void SigninManagerFactory::BrowserContextShutdown( |
148 content::BrowserContext* context) { | 148 content::BrowserContext* context) { |
149 SigninManagerBase* manager = static_cast<SigninManagerBase*>( | 149 SigninManagerBase* manager = static_cast<SigninManagerBase*>( |
150 GetServiceForBrowserContext(context, false)); | 150 GetServiceForBrowserContext(context, false)); |
151 if (manager) | 151 if (manager) |
152 FOR_EACH_OBSERVER(Observer, observer_list_, SigninManagerShutdown(manager)); | 152 FOR_EACH_OBSERVER(Observer, observer_list_, SigninManagerShutdown(manager)); |
153 BrowserContextKeyedServiceFactory::BrowserContextShutdown(context); | 153 BrowserContextKeyedServiceFactory::BrowserContextShutdown(context); |
154 } | 154 } |
OLD | NEW |