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

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

Issue 1382783002: Store USB device permissions in website settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More chooser, less permission. Created 5 years, 2 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/permissions/chooser_type.h ('k') | chrome/browser/usb/usb_chooser_context.h » ('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 "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"
11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 11 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
12 #include "chrome/browser/chrome_browser_main.h" 12 #include "chrome/browser/chrome_browser_main.h"
13 #include "chrome/browser/content_settings/cookie_settings_factory.h" 13 #include "chrome/browser/content_settings/cookie_settings_factory.h"
14 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 14 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
15 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h" 15 #include "chrome/browser/custom_handlers/protocol_handler_registry_factory.h"
16 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h" 16 #include "chrome/browser/dom_distiller/dom_distiller_service_factory.h"
17 #include "chrome/browser/domain_reliability/service_factory.h" 17 #include "chrome/browser/domain_reliability/service_factory.h"
18 #include "chrome/browser/download/download_service_factory.h" 18 #include "chrome/browser/download/download_service_factory.h"
19 #include "chrome/browser/engagement/site_engagement_service.h" 19 #include "chrome/browser/engagement/site_engagement_service.h"
20 #include "chrome/browser/engagement/site_engagement_service_factory.h" 20 #include "chrome/browser/engagement/site_engagement_service_factory.h"
21 #include "chrome/browser/favicon/favicon_service_factory.h" 21 #include "chrome/browser/favicon/favicon_service_factory.h"
22 #include "chrome/browser/geolocation/geolocation_permission_context_factory.h"
23 #include "chrome/browser/google/google_url_tracker_factory.h" 22 #include "chrome/browser/google/google_url_tracker_factory.h"
24 #include "chrome/browser/history/history_service_factory.h" 23 #include "chrome/browser/history/history_service_factory.h"
25 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h" 24 #include "chrome/browser/invalidation/profile_invalidation_provider_factory.h"
26 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h" 25 #include "chrome/browser/media_galleries/media_galleries_preferences_factory.h"
27 #include "chrome/browser/notifications/extension_welcome_notification_factory.h" 26 #include "chrome/browser/notifications/extension_welcome_notification_factory.h"
28 #include "chrome/browser/notifications/notification_permission_context_factory.h "
29 #include "chrome/browser/notifications/notifier_state_tracker_factory.h" 27 #include "chrome/browser/notifications/notifier_state_tracker_factory.h"
30 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv ice.h" 28 #include "chrome/browser/password_manager/password_manager_setting_migrator_serv ice.h"
31 #include "chrome/browser/password_manager/password_store_factory.h" 29 #include "chrome/browser/password_manager/password_store_factory.h"
30 #include "chrome/browser/permissions/chooser_context.h"
31 #include "chrome/browser/permissions/permission_context.h"
32 #include "chrome/browser/plugins/plugin_prefs_factory.h" 32 #include "chrome/browser/plugins/plugin_prefs_factory.h"
33 #include "chrome/browser/policy/profile_policy_connector_factory.h" 33 #include "chrome/browser/policy/profile_policy_connector_factory.h"
34 #include "chrome/browser/predictors/autocomplete_action_predictor_factory.h" 34 #include "chrome/browser/predictors/autocomplete_action_predictor_factory.h"
35 #include "chrome/browser/predictors/predictor_database_factory.h" 35 #include "chrome/browser/predictors/predictor_database_factory.h"
36 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" 36 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h"
37 #include "chrome/browser/prerender/prerender_link_manager_factory.h" 37 #include "chrome/browser/prerender/prerender_link_manager_factory.h"
38 #include "chrome/browser/prerender/prerender_manager_factory.h" 38 #include "chrome/browser/prerender/prerender_manager_factory.h"
39 #include "chrome/browser/prerender/prerender_message_filter.h" 39 #include "chrome/browser/prerender/prerender_message_filter.h"
40 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h" 40 #include "chrome/browser/printing/cloud_print/cloud_print_proxy_service_factory. h"
41 #include "chrome/browser/profiles/gaia_info_update_service_factory.h" 41 #include "chrome/browser/profiles/gaia_info_update_service_factory.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 #if defined(OS_CHROMEOS) 104 #if defined(OS_CHROMEOS)
105 #include "chrome/browser/supervised_user/chromeos/manager_password_service_facto ry.h" 105 #include "chrome/browser/supervised_user/chromeos/manager_password_service_facto ry.h"
106 #include "chrome/browser/supervised_user/chromeos/supervised_user_password_servi ce_factory.h" 106 #include "chrome/browser/supervised_user/chromeos/supervised_user_password_servi ce_factory.h"
107 #endif 107 #endif
108 #endif 108 #endif
109 109
110 #if defined(USE_AURA) 110 #if defined(USE_AURA)
111 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h" 111 #include "chrome/browser/ui/gesture_prefs_observer_factory_aura.h"
112 #endif 112 #endif
113 113
114 #if defined(OS_ANDROID) || defined(OS_CHROMEOS) 114 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS)
115 #include "chrome/browser/media/protected_media_identifier_permission_context_fac tory.h"
116 #else
117 #include "chrome/browser/signin/cross_device_promo_factory.h" 115 #include "chrome/browser/signin/cross_device_promo_factory.h"
118 #endif 116 #endif
119 117
120 #if defined(OS_CHROMEOS) 118 #if defined(OS_CHROMEOS)
121 #include "chrome/browser/chromeos/printer_detector/printer_detector_factory.h" 119 #include "chrome/browser/chromeos/printer_detector/printer_detector_factory.h"
122 #include "chrome/browser/extensions/api/platform_keys/verify_trust_api.h" 120 #include "chrome/browser/extensions/api/platform_keys/verify_trust_api.h"
123 #endif 121 #endif
124 122
125 #if !defined(OS_ANDROID) 123 #if !defined(OS_ANDROID)
126 #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h" 124 #include "chrome/browser/profile_resetter/automatic_profile_resetter_factory.h"
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 AutomaticProfileResetterFactory::GetInstance(); 185 AutomaticProfileResetterFactory::GetInstance();
188 #endif 186 #endif
189 #if defined(ENABLE_BACKGROUND) 187 #if defined(ENABLE_BACKGROUND)
190 BackgroundContentsServiceFactory::GetInstance(); 188 BackgroundContentsServiceFactory::GetInstance();
191 #endif 189 #endif
192 BookmarkModelFactory::GetInstance(); 190 BookmarkModelFactory::GetInstance();
193 BookmarkUndoServiceFactory::GetInstance(); 191 BookmarkUndoServiceFactory::GetInstance();
194 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) 192 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
195 CaptivePortalServiceFactory::GetInstance(); 193 CaptivePortalServiceFactory::GetInstance();
196 #endif 194 #endif
197 GeolocationPermissionContextFactory::GetInstance(); 195 ChooserContext::GetFactories();
198 #if defined(OS_ANDROID) || defined(OS_CHROMEOS)
199 ProtectedMediaIdentifierPermissionContextFactory::GetInstance();
200 #endif
201 #if defined(ENABLE_PRINT_PREVIEW) 196 #if defined(ENABLE_PRINT_PREVIEW)
202 CloudPrintProxyServiceFactory::GetInstance(); 197 CloudPrintProxyServiceFactory::GetInstance();
203 #endif 198 #endif
204 CookieSettingsFactory::GetInstance(); 199 CookieSettingsFactory::GetInstance();
205 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS) 200 #if !defined(OS_ANDROID) && !defined(OS_CHROMEOS)
206 CrossDevicePromoFactory::GetInstance(); 201 CrossDevicePromoFactory::GetInstance();
207 #endif 202 #endif
208 #if defined(ENABLE_NOTIFICATIONS) 203 #if defined(ENABLE_NOTIFICATIONS)
209 #if defined(ENABLE_EXTENSIONS) 204 #if defined(ENABLE_EXTENSIONS)
210 ExtensionWelcomeNotificationFactory::GetInstance(); 205 ExtensionWelcomeNotificationFactory::GetInstance();
211 #endif 206 #endif
212 NotificationPermissionContextFactory::GetInstance();
raymes 2015/10/29 06:14:41 How come this stuff has changed?
Reilly Grant (use Gerrit) 2015/10/29 20:59:59 Because I like making unrelated changes in a singl
213 NotifierStateTrackerFactory::GetInstance(); 207 NotifierStateTrackerFactory::GetInstance();
214 #endif // defined(ENABLE_NOTIFICATIONS) 208 #endif // defined(ENABLE_NOTIFICATIONS)
215 dom_distiller::DomDistillerServiceFactory::GetInstance(); 209 dom_distiller::DomDistillerServiceFactory::GetInstance();
216 domain_reliability::DomainReliabilityServiceFactory::GetInstance(); 210 domain_reliability::DomainReliabilityServiceFactory::GetInstance();
217 DownloadServiceFactory::GetInstance(); 211 DownloadServiceFactory::GetInstance();
218 #if defined(ENABLE_EXTENSIONS) 212 #if defined(ENABLE_EXTENSIONS)
219 EasyUnlockServiceFactory::GetInstance(); 213 EasyUnlockServiceFactory::GetInstance();
220 EnhancedBookmarkKeyServiceFactory::GetInstance(); 214 EnhancedBookmarkKeyServiceFactory::GetInstance();
221 #endif 215 #endif
222 #if defined(OS_CHROMEOS) 216 #if defined(OS_CHROMEOS)
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
268 extensions::NetworkingPrivateDelegateFactory::GetInstance() 262 extensions::NetworkingPrivateDelegateFactory::GetInstance()
269 ->SetUIDelegateFactory(networking_private_ui_delegate_factory.Pass()); 263 ->SetUIDelegateFactory(networking_private_ui_delegate_factory.Pass());
270 #endif 264 #endif
271 #endif 265 #endif
272 #if !defined(OS_ANDROID) 266 #if !defined(OS_ANDROID)
273 MediaGalleriesPreferencesFactory::GetInstance(); 267 MediaGalleriesPreferencesFactory::GetInstance();
274 NTPResourceCacheFactory::GetInstance(); 268 NTPResourceCacheFactory::GetInstance();
275 #endif 269 #endif
276 PasswordStoreFactory::GetInstance(); 270 PasswordStoreFactory::GetInstance();
277 PasswordManagerSettingMigratorService::Factory::GetInstance(); 271 PasswordManagerSettingMigratorService::Factory::GetInstance();
272 PermissionContext::GetFactories();
278 #if !defined(OS_ANDROID) 273 #if !defined(OS_ANDROID)
279 PinnedTabServiceFactory::GetInstance(); 274 PinnedTabServiceFactory::GetInstance();
280 #endif 275 #endif
281 #if defined(ENABLE_PLUGINS) 276 #if defined(ENABLE_PLUGINS)
282 PluginPrefsFactory::GetInstance(); 277 PluginPrefsFactory::GetInstance();
283 #endif 278 #endif
284 PrefsTabHelper::GetServiceInstance(); 279 PrefsTabHelper::GetServiceInstance();
285 policy::ProfilePolicyConnectorFactory::GetInstance(); 280 policy::ProfilePolicyConnectorFactory::GetInstance();
286 #if defined(ENABLE_CONFIGURATION_POLICY) 281 #if defined(ENABLE_CONFIGURATION_POLICY)
287 #if defined(OS_CHROMEOS) 282 #if defined(OS_CHROMEOS)
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 #endif 326 #endif
332 #if defined(OS_WIN) 327 #if defined(OS_WIN)
333 TriggeredProfileResetterFactory::GetInstance(); 328 TriggeredProfileResetterFactory::GetInstance();
334 #endif 329 #endif
335 WebDataServiceFactory::GetInstance(); 330 WebDataServiceFactory::GetInstance();
336 } 331 }
337 332
338 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() { 333 void ChromeBrowserMainExtraPartsProfiles::PreProfileInit() {
339 EnsureBrowserContextKeyedServiceFactoriesBuilt(); 334 EnsureBrowserContextKeyedServiceFactoriesBuilt();
340 } 335 }
OLDNEW
« no previous file with comments | « chrome/browser/permissions/chooser_type.h ('k') | chrome/browser/usb/usb_chooser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698