| 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" | |
| 8 #include "build/build_config.h" | 7 #include "build/build_config.h" |
| 9 #include "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/signin/account_fetcher_service_factory.h" | 10 #include "chrome/browser/signin/account_fetcher_service_factory.h" |
| 12 #include "chrome/browser/signin/account_tracker_service_factory.h" | 11 #include "chrome/browser/signin/account_tracker_service_factory.h" |
| 13 #include "chrome/browser/signin/chrome_signin_client_factory.h" | 12 #include "chrome/browser/signin/chrome_signin_client_factory.h" |
| 14 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h" | 13 #include "chrome/browser/signin/gaia_cookie_manager_service_factory.h" |
| 15 #include "chrome/browser/signin/local_auth.h" | 14 #include "chrome/browser/signin/local_auth.h" |
| 16 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" | 15 #include "chrome/browser/signin/profile_oauth2_token_service_factory.h" |
| 17 #include "components/keyed_service/content/browser_context_dependency_manager.h" | 16 #include "components/keyed_service/content/browser_context_dependency_manager.h" |
| 17 #include "components/prefs/pref_registry_simple.h" |
| 18 #include "components/signin/core/browser/signin_manager.h" | 18 #include "components/signin/core/browser/signin_manager.h" |
| 19 | 19 |
| 20 SigninManagerFactory::SigninManagerFactory() | 20 SigninManagerFactory::SigninManagerFactory() |
| 21 : BrowserContextKeyedServiceFactory( | 21 : BrowserContextKeyedServiceFactory( |
| 22 "SigninManager", | 22 "SigninManager", |
| 23 BrowserContextDependencyManager::GetInstance()) { | 23 BrowserContextDependencyManager::GetInstance()) { |
| 24 DependsOn(ChromeSigninClientFactory::GetInstance()); | 24 DependsOn(ChromeSigninClientFactory::GetInstance()); |
| 25 DependsOn(GaiaCookieManagerServiceFactory::GetInstance()); | 25 DependsOn(GaiaCookieManagerServiceFactory::GetInstance()); |
| 26 DependsOn(ProfileOAuth2TokenServiceFactory::GetInstance()); | 26 DependsOn(ProfileOAuth2TokenServiceFactory::GetInstance()); |
| 27 DependsOn(AccountFetcherServiceFactory::GetInstance()); | 27 DependsOn(AccountFetcherServiceFactory::GetInstance()); |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 } | 128 } |
| 129 | 129 |
| 130 void SigninManagerFactory::BrowserContextShutdown( | 130 void SigninManagerFactory::BrowserContextShutdown( |
| 131 content::BrowserContext* context) { | 131 content::BrowserContext* context) { |
| 132 SigninManagerBase* manager = static_cast<SigninManagerBase*>( | 132 SigninManagerBase* manager = static_cast<SigninManagerBase*>( |
| 133 GetServiceForBrowserContext(context, false)); | 133 GetServiceForBrowserContext(context, false)); |
| 134 if (manager) | 134 if (manager) |
| 135 FOR_EACH_OBSERVER(Observer, observer_list_, SigninManagerShutdown(manager)); | 135 FOR_EACH_OBSERVER(Observer, observer_list_, SigninManagerShutdown(manager)); |
| 136 BrowserContextKeyedServiceFactory::BrowserContextShutdown(context); | 136 BrowserContextKeyedServiceFactory::BrowserContextShutdown(context); |
| 137 } | 137 } |
| OLD | NEW |