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

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

Issue 2760403003: Remove enable_media_router. (Closed)
Patch Set: . Created 3 years, 8 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
« no previous file with comments | « chrome/browser/prefs/pref_service_syncable_util.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 10 matching lines...) Expand all
21 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber_service_f actory.h" 21 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber_service_f actory.h"
22 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" 22 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h"
23 #include "chrome/browser/domain_reliability/service_factory.h" 23 #include "chrome/browser/domain_reliability/service_factory.h"
24 #include "chrome/browser/download/download_service_factory.h" 24 #include "chrome/browser/download/download_service_factory.h"
25 #include "chrome/browser/engagement/site_engagement_service.h" 25 #include "chrome/browser/engagement/site_engagement_service.h"
26 #include "chrome/browser/engagement/site_engagement_service_factory.h" 26 #include "chrome/browser/engagement/site_engagement_service_factory.h"
27 #include "chrome/browser/favicon/favicon_service_factory.h" 27 #include "chrome/browser/favicon/favicon_service_factory.h"
28 #include "chrome/browser/google/google_url_tracker_factory.h" 28 #include "chrome/browser/google/google_url_tracker_factory.h"
29 #include "chrome/browser/history/history_service_factory.h" 29 #include "chrome/browser/history/history_service_factory.h"
30 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" 30 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h"
31 #include "chrome/browser/media/router/media_router_factory.h"
31 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" 32 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h"
32 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h" 33 #include "chrome/browser/net/nqe/ui_network_quality_estimator_service_factory.h"
33 #include "chrome/browser/notifications/extension_welcome_notification_factory.h" 34 #include "chrome/browser/notifications/extension_welcome_notification_factory.h"
34 #include "chrome/browser/notifications/notifier_state_tracker_factory.h" 35 #include "chrome/browser/notifications/notifier_state_tracker_factory.h"
35 #include "chrome/browser/ntp_snippets/content_suggestions_service_factory.h" 36 #include "chrome/browser/ntp_snippets/content_suggestions_service_factory.h"
36 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv ice_factory.h" 37 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv ice_factory.h"
37 #include "chrome/browser/password_manager/password_store_factory.h" 38 #include "chrome/browser/password_manager/password_store_factory.h"
38 #include "chrome/browser/plugins/plugin_prefs_factory.h" 39 #include "chrome/browser/plugins/plugin_prefs_factory.h"
39 #include "chrome/browser/policy/cloud/policy_header_service_factory.h" 40 #include "chrome/browser/policy/cloud/policy_header_service_factory.h"
40 #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.h" 41 #include "chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 #include "chrome/browser/chromeos/printing/cups_print_job_manager_factory.h" 120 #include "chrome/browser/chromeos/printing/cups_print_job_manager_factory.h"
120 #include "chrome/browser/chromeos/printing/printers_manager_factory.h" 121 #include "chrome/browser/chromeos/printing/printers_manager_factory.h"
121 #include "chrome/browser/extensions/api/platform_keys/verify_trust_api.h" 122 #include "chrome/browser/extensions/api/platform_keys/verify_trust_api.h"
122 #endif 123 #endif
123 124
124 #if defined(OS_ANDROID) 125 #if defined(OS_ANDROID)
125 #include "chrome/browser/android/data_usage/data_use_ui_tab_model_factory.h" 126 #include "chrome/browser/android/data_usage/data_use_ui_tab_model_factory.h"
126 #include "chrome/browser/android/search_geolocation/search_geolocation_service.h " 127 #include "chrome/browser/android/search_geolocation/search_geolocation_service.h "
127 #else 128 #else
128 #include "chrome/browser/cryptauth/chrome_cryptauth_service_factory.h" 129 #include "chrome/browser/cryptauth/chrome_cryptauth_service_factory.h"
130 #include "chrome/browser/media/router/media_router_ui_service_factory.h"
129 #include "chrome/browser/ui/global_error/global_error_service_factory.h" 131 #include "chrome/browser/ui/global_error/global_error_service_factory.h"
130 #include "chrome/browser/usb/usb_chooser_context_factory.h" 132 #include "chrome/browser/usb/usb_chooser_context_factory.h"
131 #endif 133 #endif
132 134
133 #if defined(OS_WIN) 135 #if defined(OS_WIN)
134 #include "chrome/browser/profile_resetter/triggered_profile_resetter_factory.h" 136 #include "chrome/browser/profile_resetter/triggered_profile_resetter_factory.h"
135 #include "chrome/browser/ui/desktop_ios_promotion/sms_service_factory.h" 137 #include "chrome/browser/ui/desktop_ios_promotion/sms_service_factory.h"
136 #endif 138 #endif
137 139
138 #if BUILDFLAG(ENABLE_SPELLCHECK) 140 #if BUILDFLAG(ENABLE_SPELLCHECK)
139 #include "chrome/browser/spellchecker/spellcheck_factory.h" 141 #include "chrome/browser/spellchecker/spellcheck_factory.h"
140 #endif 142 #endif
141 143
142 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY) 144 #if BUILDFLAG(ENABLE_SERVICE_DISCOVERY)
143 #include "chrome/browser/printing/cloud_print/privet_notifications_factory.h" 145 #include "chrome/browser/printing/cloud_print/privet_notifications_factory.h"
144 #endif 146 #endif
145 147
146 #if defined(ENABLE_MEDIA_ROUTER)
147 #include "chrome/browser/media/router/media_router_factory.h"
148 #if !defined(OS_ANDROID)
149 #include "chrome/browser/media/router/media_router_ui_service_factory.h"
150 #endif
151 #endif
152
153 namespace chrome { 148 namespace chrome {
154 149
155 void AddProfilesExtraParts(ChromeBrowserMainParts* main_parts) { 150 void AddProfilesExtraParts(ChromeBrowserMainParts* main_parts) {
156 main_parts->AddParts(new ChromeBrowserMainExtraPartsProfiles()); 151 main_parts->AddParts(new ChromeBrowserMainExtraPartsProfiles());
157 } 152 }
158 153
159 } // namespace chrome 154 } // namespace chrome
160 155
161 ChromeBrowserMainExtraPartsProfiles::ChromeBrowserMainExtraPartsProfiles() { 156 ChromeBrowserMainExtraPartsProfiles::ChromeBrowserMainExtraPartsProfiles() {
162 } 157 }
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
266 #endif 261 #endif
267 #if BUILDFLAG(ENABLE_EXTENSIONS) 262 #if BUILDFLAG(ENABLE_EXTENSIONS)
268 #if defined(OS_CHROMEOS) || defined(OS_WIN) || defined(OS_MACOSX) 263 #if defined(OS_CHROMEOS) || defined(OS_WIN) || defined(OS_MACOSX)
269 std::unique_ptr<extensions::NetworkingPrivateUIDelegateFactoryImpl> 264 std::unique_ptr<extensions::NetworkingPrivateUIDelegateFactoryImpl>
270 networking_private_ui_delegate_factory( 265 networking_private_ui_delegate_factory(
271 new extensions::NetworkingPrivateUIDelegateFactoryImpl); 266 new extensions::NetworkingPrivateUIDelegateFactoryImpl);
272 extensions::NetworkingPrivateDelegateFactory::GetInstance() 267 extensions::NetworkingPrivateDelegateFactory::GetInstance()
273 ->SetUIDelegateFactory(std::move(networking_private_ui_delegate_factory)); 268 ->SetUIDelegateFactory(std::move(networking_private_ui_delegate_factory));
274 #endif 269 #endif
275 #endif 270 #endif
276 #if defined(ENABLE_MEDIA_ROUTER)
277 media_router::MediaRouterFactory::GetInstance(); 271 media_router::MediaRouterFactory::GetInstance();
278 #if !defined(OS_ANDROID) 272 #if !defined(OS_ANDROID)
279 media_router::MediaRouterUIServiceFactory::GetInstance(); 273 media_router::MediaRouterUIServiceFactory::GetInstance();
280 #endif 274 #endif
281 #endif // defined(ENABLE_MEDIA_ROUTER)
282 #if !defined(OS_ANDROID) 275 #if !defined(OS_ANDROID)
283 MediaGalleriesPreferencesFactory::GetInstance(); 276 MediaGalleriesPreferencesFactory::GetInstance();
284 NTPResourceCacheFactory::GetInstance(); 277 NTPResourceCacheFactory::GetInstance();
285 #endif 278 #endif
286 ContentSuggestionsServiceFactory::GetInstance(); 279 ContentSuggestionsServiceFactory::GetInstance();
287 PasswordStoreFactory::GetInstance(); 280 PasswordStoreFactory::GetInstance();
288 PasswordManagerSettingMigratorServiceFactory::GetInstance(); 281 PasswordManagerSettingMigratorServiceFactory::GetInstance();
289 #if !defined(OS_ANDROID) 282 #if !defined(OS_ANDROID)
290 PinnedTabServiceFactory::GetInstance(); 283 PinnedTabServiceFactory::GetInstance();
291 ThemeServiceFactory::GetInstance(); 284 ThemeServiceFactory::GetInstance();
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
342 #endif 335 #endif
343 #if !defined(OS_ANDROID) 336 #if !defined(OS_ANDROID)
344 UsbChooserContextFactory::GetInstance(); 337 UsbChooserContextFactory::GetInstance();
345 #endif 338 #endif
346 WebDataServiceFactory::GetInstance(); 339 WebDataServiceFactory::GetInstance();
347 } 340 }
348 341
349 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { 342 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() {
350 EnsureBrowserContextKeyedServiceFactoriesBuilt(); 343 EnsureBrowserContextKeyedServiceFactoriesBuilt();
351 } 344 }
OLDNEW
« no previous file with comments | « chrome/browser/prefs/pref_service_syncable_util.cc ('k') | chrome/browser/profiles/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698