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 "chrome/browser/autocomplete/in_memory_url_index_factory.h" | 7 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" |
8 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" | 8 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" |
9 #include "chrome/browser/autofill/personal_data_manager_factory.h" | 9 #include "chrome/browser/autofill/personal_data_manager_factory.h" |
10 #include "chrome/browser/background/background_contents_service_factory.h" | 10 #include "chrome/browser/background/background_contents_service_factory.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 #include "chrome/browser/media/protected_media_identifier_permission_context_fac
tory.h" | 116 #include "chrome/browser/media/protected_media_identifier_permission_context_fac
tory.h" |
117 #else | 117 #else |
118 #include "chrome/browser/signin/cross_device_promo_factory.h" | 118 #include "chrome/browser/signin/cross_device_promo_factory.h" |
119 #endif | 119 #endif |
120 | 120 |
121 #if defined(OS_CHROMEOS) | 121 #if defined(OS_CHROMEOS) |
122 #include "chrome/browser/chromeos/printer_detector/printer_detector_factory.h" | 122 #include "chrome/browser/chromeos/printer_detector/printer_detector_factory.h" |
123 #include "chrome/browser/extensions/api/platform_keys/verify_trust_api.h" | 123 #include "chrome/browser/extensions/api/platform_keys/verify_trust_api.h" |
124 #endif | 124 #endif |
125 | 125 |
126 #if !defined(OS_ANDROID) | 126 #if defined(OS_ANDROID) |
| 127 #include "chrome/browser/android/data_usage/data_use_ui_tab_model_factory.h" |
| 128 #else |
127 #include "chrome/browser/ui/global_error/global_error_service_factory.h" | 129 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
128 #include "chrome/browser/usb/usb_chooser_context_factory.h" | 130 #include "chrome/browser/usb/usb_chooser_context_factory.h" |
129 #endif | 131 #endif |
130 | 132 |
131 #if defined(OS_WIN) | 133 #if defined(OS_WIN) |
132 #include "chrome/browser/profile_resetter/triggered_profile_resetter_factory.h" | 134 #include "chrome/browser/profile_resetter/triggered_profile_resetter_factory.h" |
133 #endif | 135 #endif |
134 | 136 |
135 #if defined(ENABLE_SPELLCHECK) | 137 #if defined(ENABLE_SPELLCHECK) |
136 #include "chrome/browser/spellchecker/spellcheck_factory.h" | 138 #include "chrome/browser/spellchecker/spellcheck_factory.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 AccountFetcherServiceFactory::GetInstance(); | 187 AccountFetcherServiceFactory::GetInstance(); |
186 autofill::PersonalDataManagerFactory::GetInstance(); | 188 autofill::PersonalDataManagerFactory::GetInstance(); |
187 #if defined(ENABLE_BACKGROUND) | 189 #if defined(ENABLE_BACKGROUND) |
188 BackgroundContentsServiceFactory::GetInstance(); | 190 BackgroundContentsServiceFactory::GetInstance(); |
189 #endif | 191 #endif |
190 BookmarkModelFactory::GetInstance(); | 192 BookmarkModelFactory::GetInstance(); |
191 BookmarkUndoServiceFactory::GetInstance(); | 193 BookmarkUndoServiceFactory::GetInstance(); |
192 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) | 194 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) |
193 CaptivePortalServiceFactory::GetInstance(); | 195 CaptivePortalServiceFactory::GetInstance(); |
194 #endif | 196 #endif |
| 197 #if defined(OS_ANDROID) |
| 198 chrome::android::DataUseUITabModelFactory::GetInstance(); |
| 199 #endif |
195 GeolocationPermissionContextFactory::GetInstance(); | 200 GeolocationPermissionContextFactory::GetInstance(); |
196 #if defined(OS_ANDROID) || defined(OS_CHROMEOS) | 201 #if defined(OS_ANDROID) || defined(OS_CHROMEOS) |
197 ProtectedMediaIdentifierPermissionContextFactory::GetInstance(); | 202 ProtectedMediaIdentifierPermissionContextFactory::GetInstance(); |
198 #endif | 203 #endif |
199 #if defined(ENABLE_PRINT_PREVIEW) | 204 #if defined(ENABLE_PRINT_PREVIEW) |
200 CloudPrintProxyServiceFactory::GetInstance(); | 205 CloudPrintProxyServiceFactory::GetInstance(); |
201 #endif | 206 #endif |
202 CookieSettingsFactory::GetInstance(); | 207 CookieSettingsFactory::GetInstance(); |
203 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) | 208 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) |
204 CrossDevicePromoFactory::GetInstance(); | 209 CrossDevicePromoFactory::GetInstance(); |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
333 #endif | 338 #endif |
334 #if !defined(OS_ANDROID) | 339 #if !defined(OS_ANDROID) |
335 UsbChooserContextFactory::GetInstance(); | 340 UsbChooserContextFactory::GetInstance(); |
336 #endif | 341 #endif |
337 WebDataServiceFactory::GetInstance(); | 342 WebDataServiceFactory::GetInstance(); |
338 } | 343 } |
339 | 344 |
340 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { | 345 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { |
341 EnsureBrowserContextKeyedServiceFactoriesBuilt(); | 346 EnsureBrowserContextKeyedServiceFactoriesBuilt(); |
342 } | 347 } |
OLD | NEW |