| 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/browser_state/browser_state_keyed_service_factories
.h" | 5 #include "ios/chrome/browser/browser_state/browser_state_keyed_service_factories
.h" |
| 6 | 6 |
| 7 #include "ios/chrome/browser/autocomplete/autocomplete_classifier_factory.h" | 7 #include "ios/chrome/browser/autocomplete/autocomplete_classifier_factory.h" |
| 8 #include "ios/chrome/browser/autocomplete/in_memory_url_index_factory.h" | 8 #include "ios/chrome/browser/autocomplete/in_memory_url_index_factory.h" |
| 9 #include "ios/chrome/browser/autocomplete/shortcuts_backend_factory.h" | 9 #include "ios/chrome/browser/autocomplete/shortcuts_backend_factory.h" |
| 10 #include "ios/chrome/browser/autofill/personal_data_manager_factory.h" | 10 #include "ios/chrome/browser/autofill/personal_data_manager_factory.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" | 38 #include "ios/chrome/browser/signin/oauth2_token_service_factory.h" |
| 39 #include "ios/chrome/browser/signin/signin_client_factory.h" | 39 #include "ios/chrome/browser/signin/signin_client_factory.h" |
| 40 #include "ios/chrome/browser/signin/signin_error_controller_factory.h" | 40 #include "ios/chrome/browser/signin/signin_error_controller_factory.h" |
| 41 #include "ios/chrome/browser/signin/signin_manager_factory.h" | 41 #include "ios/chrome/browser/signin/signin_manager_factory.h" |
| 42 #include "ios/chrome/browser/suggestions/suggestions_service_factory.h" | 42 #include "ios/chrome/browser/suggestions/suggestions_service_factory.h" |
| 43 #include "ios/chrome/browser/sync/sync_setup_service_factory.h" | 43 #include "ios/chrome/browser/sync/sync_setup_service_factory.h" |
| 44 #include "ios/chrome/browser/translate/translate_accept_languages_factory.h" | 44 #include "ios/chrome/browser/translate/translate_accept_languages_factory.h" |
| 45 #include "ios/chrome/browser/undo/bookmark_undo_service_factory.h" | 45 #include "ios/chrome/browser/undo/bookmark_undo_service_factory.h" |
| 46 #include "ios/chrome/browser/web_data_service_factory.h" | 46 #include "ios/chrome/browser/web_data_service_factory.h" |
| 47 | 47 |
| 48 #if !defined(__has_feature) || !__has_feature(objc_arc) |
| 49 #error "This file requires ARC support." |
| 50 #endif |
| 51 |
| 48 // This method gets the instance of each ServiceFactory. We do this so that | 52 // This method gets the instance of each ServiceFactory. We do this so that |
| 49 // each ServiceFactory initializes itself and registers its dependencies with | 53 // each ServiceFactory initializes itself and registers its dependencies with |
| 50 // the global PreferenceDependencyManager. We need to have a complete | 54 // the global PreferenceDependencyManager. We need to have a complete |
| 51 // dependency graph when we create a browser state so we can dispatch the | 55 // dependency graph when we create a browser state so we can dispatch the |
| 52 // browser state creation message to the services that want to create their | 56 // browser state creation message to the services that want to create their |
| 53 // services at browser state creation time. | 57 // services at browser state creation time. |
| 54 // | 58 // |
| 55 // TODO(erg): This needs to be something else. I don't think putting every | 59 // TODO(erg): This needs to be something else. I don't think putting every |
| 56 // FooServiceFactory here will scale or is desirable long term. | 60 // FooServiceFactory here will scale or is desirable long term. |
| 57 void EnsureBrowserStateKeyedServiceFactoriesBuilt() { | 61 void EnsureBrowserStateKeyedServiceFactoriesBuilt() { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 IOSChromePasswordStoreFactory::GetInstance(); | 93 IOSChromePasswordStoreFactory::GetInstance(); |
| 90 IOSChromeProfileInvalidationProviderFactory::GetInstance(); | 94 IOSChromeProfileInvalidationProviderFactory::GetInstance(); |
| 91 GoogleLogoServiceFactory::GetInstance(); | 95 GoogleLogoServiceFactory::GetInstance(); |
| 92 OAuth2TokenServiceFactory::GetInstance(); | 96 OAuth2TokenServiceFactory::GetInstance(); |
| 93 ReadingListModelFactory::GetInstance(); | 97 ReadingListModelFactory::GetInstance(); |
| 94 SigninClientFactory::GetInstance(); | 98 SigninClientFactory::GetInstance(); |
| 95 suggestions::SuggestionsServiceFactory::GetInstance(); | 99 suggestions::SuggestionsServiceFactory::GetInstance(); |
| 96 SyncSetupServiceFactory::GetInstance(); | 100 SyncSetupServiceFactory::GetInstance(); |
| 97 TranslateAcceptLanguagesFactory::GetInstance(); | 101 TranslateAcceptLanguagesFactory::GetInstance(); |
| 98 } | 102 } |
| OLD | NEW |