Removed Profile::GetHostContentSettingsMap
commit5100d43a99c1c6657162db57cc3dde53a5b55277
authorpeconn <peconn@chromium.org>
Wed, 16 Sep 2015 12:03:08 +0000 (16 05:03 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 16 Sep 2015 12:03:56 +0000 (16 12:03 +0000)
treeb109b32d51f89a62442d2858556a076a08a41f95
parent875d078307b9c4da92f36b9d4d0d4de4a7d8c9be
Removed Profile::GetHostContentSettingsMap

Parts:
1) Removed Profile::GetHostContentSettingsMap.
2) Replaced its use with HostContentSettingsMapFactory::GetForProfile.
3) Added dependencies for factories that depend on HCSM.
3.1) Extracted common dependencies for factories of PermissionContextBase subclasses.
4) Removed unnecessary notification watcher from SupervisedProvider (it is owned by HCSM so will be shutdown at the correct time).

BUG=112530

TBR=sky@chromium.org

Review URL: https://codereview.chromium.org/1312453005

Cr-Commit-Position: refs/heads/master@{#349099}
104 files changed:
chrome/browser/android/preferences/pref_service_bridge.cc
chrome/browser/android/preferences/website_preference_bridge.cc
chrome/browser/apps/guest_view/web_view_browsertest.cc
chrome/browser/banners/app_banner_settings_helper.cc
chrome/browser/browsing_data/browsing_data_remover.cc
chrome/browser/browsing_data/cookies_tree_model_unittest.cc
chrome/browser/chrome_content_browser_client.cc
chrome/browser/content_settings/content_settings_browsertest.cc
chrome/browser/content_settings/content_settings_supervised_provider.cc
chrome/browser/content_settings/content_settings_supervised_provider.h
chrome/browser/content_settings/content_settings_usages_state_unittest.cc
chrome/browser/content_settings/cookie_settings_factory.cc
chrome/browser/content_settings/host_content_settings_map_unittest.cc
chrome/browser/content_settings/tab_specific_content_settings.cc
chrome/browser/download/download_request_limiter.cc
chrome/browser/engagement/site_engagement_service.cc
chrome/browser/engagement/site_engagement_service_factory.cc
chrome/browser/extensions/api/content_settings/content_settings_api.cc
chrome/browser/extensions/api/content_settings/content_settings_apitest.cc
chrome/browser/extensions/extension_special_storage_policy_unittest.cc
chrome/browser/extensions/plugin_apitest.cc
chrome/browser/extensions/webstore_inline_installer_browsertest.cc
chrome/browser/geolocation/geolocation_browsertest.cc
chrome/browser/geolocation/geolocation_permission_context_factory.cc
chrome/browser/geolocation/geolocation_permission_context_factory.h
chrome/browser/geolocation/geolocation_permission_context_unittest.cc
chrome/browser/geolocation/geolocation_settings_state_unittest.cc
chrome/browser/media/chrome_media_stream_infobar_browsertest.cc
chrome/browser/media/media_stream_camera_permission_context_factory.cc
chrome/browser/media/media_stream_camera_permission_context_factory.h
chrome/browser/media/media_stream_device_permission_context_unittest.cc
chrome/browser/media/media_stream_devices_controller.cc
chrome/browser/media/media_stream_devices_controller_browsertest.cc
chrome/browser/media/media_stream_mic_permission_context_factory.cc
chrome/browser/media/media_stream_mic_permission_context_factory.h
chrome/browser/media/midi_permission_context_factory.cc
chrome/browser/media/midi_permission_context_factory.h
chrome/browser/media/midi_permission_context_unittest.cc
chrome/browser/media/protected_media_identifier_permission_context_factory.cc
chrome/browser/media/protected_media_identifier_permission_context_factory.h
chrome/browser/notifications/desktop_notification_profile_util.cc
chrome/browser/notifications/message_center_settings_controller.cc
chrome/browser/notifications/message_center_settings_controller_unittest.cc
chrome/browser/notifications/notification_browsertest.cc
chrome/browser/notifications/notification_permission_context_factory.cc
chrome/browser/notifications/notification_permission_context_factory.h
chrome/browser/notifications/platform_notification_service_impl.cc
chrome/browser/notifications/platform_notification_service_unittest.cc
chrome/browser/pepper_broker_infobar_delegate.cc
chrome/browser/permissions/permission_context_base.cc
chrome/browser/permissions/permission_context_base_unittest.cc
chrome/browser/permissions/permission_context_factory_base.cc [new file with mode: 0644]
chrome/browser/permissions/permission_context_factory_base.h [new file with mode: 0644]
chrome/browser/permissions/permission_manager.cc
chrome/browser/permissions/permission_manager_factory.cc
chrome/browser/permissions/permission_manager_unittest.cc
chrome/browser/permissions/permission_queue_controller.cc
chrome/browser/plugins/plugin_info_message_filter.cc
chrome/browser/plugins/plugin_info_message_filter_unittest.cc
chrome/browser/prerender/prerender_browsertest.cc
chrome/browser/profile_resetter/profile_resetter.cc
chrome/browser/profile_resetter/profile_resetter_unittest.cc
chrome/browser/profiles/off_the_record_profile_impl.cc
chrome/browser/profiles/off_the_record_profile_impl.h
chrome/browser/profiles/profile.h
chrome/browser/profiles/profile_impl.cc
chrome/browser/profiles/profile_impl.h
chrome/browser/profiles/profile_io_data.cc
chrome/browser/push_messaging/push_messaging_browsertest.cc
chrome/browser/push_messaging/push_messaging_permission_context.cc
chrome/browser/push_messaging/push_messaging_permission_context_factory.cc
chrome/browser/push_messaging/push_messaging_permission_context_factory.h
chrome/browser/push_messaging/push_messaging_permission_context_unittest.cc
chrome/browser/renderer_host/pepper/pepper_broker_message_filter.cc
chrome/browser/signin/chrome_signin_client.cc
chrome/browser/ssl/chrome_ssl_host_state_delegate.cc
chrome/browser/ssl/ssl_browser_tests.cc
chrome/browser/storage/durable_storage_permission_context_factory.cc
chrome/browser/storage/durable_storage_permission_context_factory.h
chrome/browser/supervised_user/supervised_user_pref_store.cc
chrome/browser/supervised_user/supervised_user_settings_service.h
chrome/browser/ui/android/content_settings/popup_blocked_infobar_delegate.cc
chrome/browser/ui/app_list/test/fake_profile.cc
chrome/browser/ui/app_list/test/fake_profile.h
chrome/browser/ui/blocked_content/popup_blocker_browsertest.cc
chrome/browser/ui/blocked_content/popup_blocker_tab_helper.cc
chrome/browser/ui/content_settings/content_setting_bubble_model.cc
chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc
chrome/browser/ui/content_settings/content_setting_image_model.cc
chrome/browser/ui/content_settings/content_setting_image_model_unittest.cc
chrome/browser/ui/exclusive_access/fullscreen_controller.cc
chrome/browser/ui/exclusive_access/fullscreen_controller_browsertest.cc
chrome/browser/ui/exclusive_access/fullscreen_controller_interactive_browsertest.cc
chrome/browser/ui/exclusive_access/mouse_lock_controller.cc
chrome/browser/ui/website_settings/website_settings.cc
chrome/browser/ui/website_settings/website_settings_unittest.cc
chrome/browser/ui/webui/options/content_settings_handler.cc
chrome/browser/ui/webui/plugins_ui.cc
chrome/chrome_browser.gypi
chrome/test/base/testing_profile.cc
chrome/test/base/testing_profile.h
chrome/test/ppapi/ppapi_browsertest.cc
chrome/test/ppapi/ppapi_interactive_browsertest.cc
chrome/test/ppapi/ppapi_test.cc