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

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

Issue 862103002: Only store leading 13 bits of password hash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make LocalAuth a class so methods can be private and exposed only to tests. Created 5 years, 10 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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/signin/local_auth_unittest.cc ('k') | chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698