Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: chrome/browser/profiles/chrome_browser_main_extra_parts_profiles.cc

Issue 2103323007: Exposing NQE on the Browser UI thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <utility> 7 #include <utility>
8 8
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h" 10 #include "chrome/browser/autocomplete/in_memory_url_index_factory.h"
11 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h" 11 #include "chrome/browser/autocomplete/shortcuts_backend_factory.h"
12 #include "chrome/browser/autofill/personal_data_manager_factory.h" 12 #include "chrome/browser/autofill/personal_data_manager_factory.h"
13 #include "chrome/browser/background/background_contents_service_factory.h" 13 #include "chrome/browser/background/background_contents_service_factory.h"
14 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 14 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
15 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h" 15 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h"
16 #include "chrome/browser/chrome_browser_main.h" 16 #include "chrome/browser/chrome_browser_main.h"
17 #include "chrome/browser/content_settings/cookie_settings_factory.h" 17 #include "chrome/browser/content_settings/cookie_settings_factory.h"
18 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 18 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
19 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" 19 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h"
20 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" 20 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h"
21 #include "chrome/browser/domain_reliability/service_factory.h" 21 #include "chrome/browser/domain_reliability/service_factory.h"
22 #include "chrome/browser/download/download_service_factory.h" 22 #include "chrome/browser/download/download_service_factory.h"
23 #include "chrome/browser/engagement/site_engagement_service.h" 23 #include "chrome/browser/engagement/site_engagement_service.h"
24 #include "chrome/browser/engagement/site_engagement_service_factory.h" 24 #include "chrome/browser/engagement/site_engagement_service_factory.h"
25 #include "chrome/browser/favicon/favicon_service_factory.h" 25 #include "chrome/browser/favicon/favicon_service_factory.h"
26 #include "chrome/browser/google/google_url_tracker_factory.h" 26 #include "chrome/browser/google/google_url_tracker_factory.h"
27 #include "chrome/browser/history/history_service_factory.h" 27 #include "chrome/browser/history/history_service_factory.h"
28 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" 28 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h"
29 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" 29 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h"
30 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h"
30 #include "chrome/browser/notifications/extension_welcome_notification_factory.h" 31 #include "chrome/browser/notifications/extension_welcome_notification_factory.h"
31 #include "chrome/browser/notifications/notifier_state_tracker_factory.h" 32 #include "chrome/browser/notifications/notifier_state_tracker_factory.h"
32 #include "chrome/browser/ntp_snippets/ntp_snippets_service_factory.h" 33 #include "chrome/browser/ntp_snippets/ntp_snippets_service_factory.h"
33 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv ice_factory.h" 34 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv ice_factory.h"
34 #include "chrome/browser/password_manager/password_store_factory.h" 35 #include "chrome/browser/password_manager/password_store_factory.h"
35 #include "chrome/browser/plugins/plugin_prefs_factory.h" 36 #include "chrome/browser/plugins/plugin_prefs_factory.h"
36 #include "chrome/browser/policy/cloud/policy_header_service_factory.h" 37 #include "chrome/browser/policy/cloud/policy_header_service_factory.h"
37 #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.h" 38 #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.h"
38 #include "chrome/browser/policy/profile_policy_connector_factory.h" 39 #include "chrome/browser/policy/profile_policy_connector_factory.h"
39 #include "chrome/browser/policy/schema_registry_service_factory.h" 40 #include "chrome/browser/policy/schema_registry_service_factory.h"
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 #endif 187 #endif
187 BookmarkModelFactory::GetInstance(); 188 BookmarkModelFactory::GetInstance();
188 BookmarkUndoServiceFactory::GetInstance(); 189 BookmarkUndoServiceFactory::GetInstance();
189 BrowsingDataRemoverFactory::GetInstance(); 190 BrowsingDataRemoverFactory::GetInstance();
190 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) 191 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
191 CaptivePortalServiceFactory::GetInstance(); 192 CaptivePortalServiceFactory::GetInstance();
192 #endif 193 #endif
193 #if defined(OS_ANDROID) 194 #if defined(OS_ANDROID)
194 chrome::android::DataUseUITabModelFactory::GetInstance(); 195 chrome::android::DataUseUITabModelFactory::GetInstance();
195 #endif 196 #endif
197 chrome_browser_net::UINetworkQualityEstimatorServiceFactory::GetInstance();
tbansal1 2016/07/20 03:32:36 I forgot, would this be called on non-incognito pr
RyanSturm 2016/07/20 16:36:46 This just sets up the factory. There's a DCHECK in
tbansal1 2016/07/20 17:14:18 Acknowledged.
196 #if defined(ENABLE_PRINT_PREVIEW) 198 #if defined(ENABLE_PRINT_PREVIEW)
197 CloudPrintProxyServiceFactory::GetInstance(); 199 CloudPrintProxyServiceFactory::GetInstance();
198 #endif 200 #endif
199 CookieSettingsFactory::GetInstance(); 201 CookieSettingsFactory::GetInstance();
200 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) 202 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS)
201 CrossDevicePromoFactory::GetInstance(); 203 CrossDevicePromoFactory::GetInstance();
202 #endif 204 #endif
203 #if defined(ENABLE_NOTIFICATIONS) 205 #if defined(ENABLE_NOTIFICATIONS)
204 #if defined(ENABLE_EXTENSIONS) 206 #if defined(ENABLE_EXTENSIONS)
205 ExtensionWelcomeNotificationFactory::GetInstance(); 207 ExtensionWelcomeNotificationFactory::GetInstance();
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 #endif 326 #endif
325 #if !defined(OS_ANDROID) 327 #if !defined(OS_ANDROID)
326 UsbChooserContextFactory::GetInstance(); 328 UsbChooserContextFactory::GetInstance();
327 #endif 329 #endif
328 WebDataServiceFactory::GetInstance(); 330 WebDataServiceFactory::GetInstance();
329 } 331 }
330 332
331 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { 333 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() {
332 EnsureBrowserContextKeyedServiceFactoriesBuilt(); 334 EnsureBrowserContextKeyedServiceFactoriesBuilt();
333 } 335 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698