| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/profiles/chrome_browser_main_extra_parts_profiles.h" | 5 #include "chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.h" |
| 6 | 6 |
| 7 #include "apps/app_restore_service_factory.h" | 7 #include "apps/app_restore_service_factory.h" |
| 8 #include "apps/shell_window_geometry_cache.h" | 8 #include "apps/shell_window_geometry_cache.h" |
| 9 #include "apps/shortcut_manager_factory.h" | 9 #include "apps/shortcut_manager_factory.h" |
| 10 #include "chrome/browser/autofill/autocheckout_whitelist_manager_factory.h" | 10 #include "chrome/browser/autofill/autocheckout_whitelist_manager_factory.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 // the global PreferenceDependencyManager. We need to have a complete | 142 // the global PreferenceDependencyManager. We need to have a complete |
| 143 // dependency graph when we create a profile so we can dispatch the profile | 143 // dependency graph when we create a profile so we can dispatch the profile |
| 144 // creation message to the services that want to create their services at | 144 // creation message to the services that want to create their services at |
| 145 // profile creation time. | 145 // profile creation time. |
| 146 // | 146 // |
| 147 // TODO(erg): This needs to be something else. I don't think putting every | 147 // TODO(erg): This needs to be something else. I don't think putting every |
| 148 // FooServiceFactory here will scale or is desirable long term. | 148 // FooServiceFactory here will scale or is desirable long term. |
| 149 // | 149 // |
| 150 // static | 150 // static |
| 151 void | 151 void |
| 152 ChromeBrowserMainExtraPartsProfiles::EnsureProfileKeyedServiceFactoriesBuilt() { | 152 ChromeBrowserMainExtraPartsProfiles::EnsureBrowserContextKeyedServiceFactoriesBu
ilt() { |
| 153 AboutSigninInternalsFactory::GetInstance(); | 153 AboutSigninInternalsFactory::GetInstance(); |
| 154 autofill::PersonalDataManagerFactory::GetInstance(); | 154 autofill::PersonalDataManagerFactory::GetInstance(); |
| 155 #if defined(ENABLE_BACKGROUND) | 155 #if defined(ENABLE_BACKGROUND) |
| 156 BackgroundContentsServiceFactory::GetInstance(); | 156 BackgroundContentsServiceFactory::GetInstance(); |
| 157 #endif | 157 #endif |
| 158 BookmarkModelFactory::GetInstance(); | 158 BookmarkModelFactory::GetInstance(); |
| 159 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 159 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
| 160 captive_portal::CaptivePortalServiceFactory::GetInstance(); | 160 captive_portal::CaptivePortalServiceFactory::GetInstance(); |
| 161 #endif | 161 #endif |
| 162 ChromeGeolocationPermissionContextFactory::GetInstance(); | 162 ChromeGeolocationPermissionContextFactory::GetInstance(); |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 #endif | 283 #endif |
| 284 TokenCacheServiceFactory::GetInstance(); | 284 TokenCacheServiceFactory::GetInstance(); |
| 285 TokenServiceFactory::GetInstance(); | 285 TokenServiceFactory::GetInstance(); |
| 286 #if !defined(OS_ANDROID) | 286 #if !defined(OS_ANDROID) |
| 287 UserStyleSheetWatcherFactory::GetInstance(); | 287 UserStyleSheetWatcherFactory::GetInstance(); |
| 288 #endif | 288 #endif |
| 289 WebDataServiceFactory::GetInstance(); | 289 WebDataServiceFactory::GetInstance(); |
| 290 } | 290 } |
| 291 | 291 |
| 292 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { | 292 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { |
| 293 EnsureProfileKeyedServiceFactoriesBuilt(); | 293 EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
| 294 } | 294 } |
| OLD | NEW |