OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "ios/chrome/browser/signin/signin_manager_factory.h" | 5 #include "ios/chrome/browser/signin/signin_manager_factory.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/singleton.h" | 9 #include "base/memory/singleton.h" |
10 #include "base/prefs/pref_registry_simple.h" | |
11 #include "base/time/time.h" | 10 #include "base/time/time.h" |
12 #include "components/keyed_service/ios/browser_state_dependency_manager.h" | 11 #include "components/keyed_service/ios/browser_state_dependency_manager.h" |
13 #include "components/pref_registry/pref_registry_syncable.h" | 12 #include "components/pref_registry/pref_registry_syncable.h" |
| 13 #include "components/prefs/pref_registry_simple.h" |
14 #include "components/signin/core/browser/signin_manager.h" | 14 #include "components/signin/core/browser/signin_manager.h" |
15 #include "components/signin/core/common/signin_pref_names.h" | 15 #include "components/signin/core/common/signin_pref_names.h" |
16 #include "ios/chrome/browser/application_context.h" | 16 #include "ios/chrome/browser/application_context.h" |
17 #include "ios/chrome/browser/signin/account_tracker_service_factory.h" | 17 #include "ios/chrome/browser/signin/account_tracker_service_factory.h" |
18 #include "ios/chrome/browser/signin/gaia_cookie_manager_service_factory.h" | 18 #include "ios/chrome/browser/signin/gaia_cookie_manager_service_factory.h" |
19 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" | 19 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" |
20 #include "ios/chrome/browser/signin/signin_client_factory.h" | 20 #include "ios/chrome/browser/signin/signin_client_factory.h" |
21 #include "ios/chrome/browser/signin/signin_manager_factory_observer.h" | 21 #include "ios/chrome/browser/signin/signin_manager_factory_observer.h" |
22 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.
h" | 22 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.
h" |
23 | 23 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 void SigninManagerFactory::BrowserStateShutdown(web::BrowserState* context) { | 99 void SigninManagerFactory::BrowserStateShutdown(web::BrowserState* context) { |
100 SigninManager* manager = | 100 SigninManager* manager = |
101 static_cast<SigninManager*>(GetServiceForBrowserState(context, false)); | 101 static_cast<SigninManager*>(GetServiceForBrowserState(context, false)); |
102 if (manager) | 102 if (manager) |
103 FOR_EACH_OBSERVER(SigninManagerFactoryObserver, observer_list_, | 103 FOR_EACH_OBSERVER(SigninManagerFactoryObserver, observer_list_, |
104 SigninManagerShutdown(manager)); | 104 SigninManagerShutdown(manager)); |
105 BrowserStateKeyedServiceFactory::BrowserStateShutdown(context); | 105 BrowserStateKeyedServiceFactory::BrowserStateShutdown(context); |
106 } | 106 } |
107 | 107 |
108 } // namespace ios | 108 } // namespace ios |
OLD | NEW |