diff options
-rw-r--r-- | chrome/browser/policy/DEPS | 155 | ||||
-rw-r--r-- | chrome/browser/policy/cloud/DEPS | 162 | ||||
-rw-r--r-- | chrome/browser/policy/test/DEPS | 18 |
3 files changed, 335 insertions, 0 deletions
diff --git a/chrome/browser/policy/DEPS b/chrome/browser/policy/DEPS new file mode 100644 index 0000000..245cd81 --- /dev/null +++ b/chrome/browser/policy/DEPS @@ -0,0 +1,155 @@ +# The //chrome/browser/policy code is being converted into a component at +# //components/policy. This DEPS file is temporarily restricting the include +# rules for this code; once all the exceptions are fixed then the code will +# be moved, and this file will be removed. +# http://crbug.com/271392 + +include_rules = [ + "-chrome", + "-chromeos", + "-content", + "+chrome/browser/policy", +] + +specific_include_rules = { + # These files will stay. + r"(browser_policy_connector|" + r"managed_mode_policy_provider|" + r"policy_browsertest|" + r"policy_prefs_browsertest|" + r"profile_policy_connector|" + r"profile_policy_connector_factory|" + r"url_blacklist_manager|" + r"url_blacklist_manager_unittest)" + r"\.(cc|h)": [ + "+chrome", + "+chromeos", + "+content/public/browser", + "+content/public/common", + "+content/public/test", + "+content/test/net", + ], + + # TODO(joaodasilva): remove these exceptions. + r"async_policy_loader\.cc": [ + "+content/public/browser/browser_thread.h", + ], + + r"async_policy_provider\.cc": [ + "+content/public/browser/browser_thread.h", + ], + + r"async_policy_provider_unittest\.cc": [ + "+content/public/browser/browser_thread.h", + "+content/public/test/test_browser_thread.h", + ], + + r"configuration_policy_handler_android\.cc": [ + "+chrome/common/net/url_fixer_upper.h", + "+chrome/common/pref_names.h", + ], + + r"configuration_policy_handler\.cc": [ + "+chrome/browser/chrome_notification_types.h", + "+chrome/browser/download/download_util.h", + "+chrome/browser/extensions/external_policy_loader.h", + "+chrome/browser/prefs/proxy_config_dictionary.h", + "+chrome/browser/prefs/proxy_prefs.h", + "+chrome/browser/prefs/session_startup_pref.h", + "+chrome/browser/search_engines/search_terms_data.h", + "+chrome/browser/search_engines/template_url.h", + "+chrome/common/extensions/extension.h", + "+chrome/common/pref_names.h", + "+content/public/browser/notification_service.h", + ], + + r"configuration_policy_handler\.h": [ + "+chrome/browser/prefs/incognito_mode_prefs.h", + "+chrome/common/content_settings.h", + ], + + r"configuration_policy_handler_list\.cc": [ + "+chrome/common/extensions/manifest.h", + "+chrome/common/pref_names.h", + "+chrome/browser/chromeos/policy/configuration_policy_handler_chromeos.h", + "+chromeos/dbus/power_policy_controller.h", + ], + + r"configuration_policy_handler_unittest\.cc": [ + "+chrome/browser/extensions/external_policy_loader.h", + "+chrome/common/pref_names.h", + ], + + r"configuration_policy_pref_store\.cc": [ + "+chrome/browser/browser_process.h", + "+content/public/browser/browser_thread.h", + ], + + r"configuration_policy_pref_store_unittest\.cc": [ + "+chrome/browser/prefs/incognito_mode_prefs.h", + "+chrome/browser/prefs/proxy_config_dictionary.h", + "+chrome/common/content_settings.h", + "+chrome/common/pref_names.h", + ], + + r"configuration_policy_provider_test\.h": [ + "+content/public/test/test_browser_thread.h", + ], + + r"policy_domain_descriptor\.cc": [ + "+chrome/common/policy/policy_schema.h", + ], + + r"policy_domain_descriptor_unittest\.cc": [ + "+chrome/common/policy/policy_schema.h", + ], + + r"policy_loader_mac\.cc": [ + "+chrome/common/chrome_paths.h", + "+chrome/common/policy/policy_schema.h", + ], + + r"policy_loader_win\.cc": [ + "+chrome/common/json_schema/json_schema_constants.h", + ], + + r"policy_loader_win_unittest\.cc": [ + "+chrome/common/chrome_paths.h", + "+chrome/common/json_schema/json_schema_constants.h", + ], + + r"policy_path_parser_win\.cc": [ + "+chrome/common/chrome_switches.h", + ], + + r"policy_service_impl_unittest\.cc": [ + "+chrome/common/policy/policy_schema.h", + "+content/public/browser/browser_thread.h", + "+content/public/test/test_browser_thread_bundle.h", + ], + + r"policy_statistics_collector\.cc": [ + "+chrome/common/pref_names.h", + ], + + r"policy_statistics_collector_unittest\.cc": [ + "+chrome/browser/prefs/browser_prefs.h", + "+chrome/common/pref_names.h", + ], + + r"preg_parser_win_unittest\.cc": [ + "+chrome/common/chrome_paths.h", + ], + + r"registry_dict_win\.cc": [ + "+chrome/common/json_schema/json_schema_constants.h", + ], + + r"registry_dict_win_unittest\.cc": [ + "+chrome/common/json_schema/json_schema_constants.h", + ], + + r"test/local_policy_test_server\.cc": [ + "+chrome/common/chrome_paths.h", + ], +} diff --git a/chrome/browser/policy/cloud/DEPS b/chrome/browser/policy/cloud/DEPS new file mode 100644 index 0000000..0f3934a --- /dev/null +++ b/chrome/browser/policy/cloud/DEPS @@ -0,0 +1,162 @@ +# The //chrome/browser/policy code is being converted into a component at +# //components/policy. This DEPS file is temporarily restricting the include +# rules for this code; once all the exceptions are fixed then the code will +# be moved, and this file will be removed. +# http://crbug.com/271392 + +include_rules = [ + "-chrome", + "-chromeos", + "-content", + "+chrome/browser/policy", + "+chrome/browser/policy/cloud", +] + +specific_include_rules = { + # These files will stay. + r"(cloud_policy_browsertest|" + r"cloud_policy_manager_browsertest|" + r"component_cloud_policy_browsertest|" + r"device_management_service_browsertest|" + r"user_policy_signin_service_android|" + r"user_policy_signin_service_base|" + r"user_policy_signin_service|" + r"user_policy_signin_service_factory|" + r"user_policy_signin_service_unittest)" + r"\.(cc|h)": [ + "+chrome", + "+chromeos", + "+content/public/browser", + "+content/public/common", + "+content/public/test", + "+content/test/net", + ], + + # TODO(joaodasilva): remove these exceptions. + r"cloud_external_data_manager_base\.cc": [ + "+content/public/browser/browser_thread.h", + ], + + r"cloud_external_data_manager_base_unittest\.cc": [ + "+content/public/test/test_browser_thread_bundle.h", + ], + + r"cloud_policy_client_registration_helper\.cc": [ + "+chrome/browser/signin/android_profile_oauth2_token_service.h", + "+chrome/browser/signin/oauth2_token_service.h", + ], + + r"cloud_policy_constants\.cc": [ + "+chrome/common/chrome_switches.h", + ], + + r"cloud_policy_core_unittest\.cc": [ + "+chrome/browser/prefs/browser_prefs.h", + "+chrome/common/pref_names.h", + ], + + r"cloud_policy_invalidator\.cc": [ + "+chrome/browser/invalidation/invalidation_service.h", + "+chrome/browser/invalidation/invalidation_service_factory.h", + "+chrome/common/chrome_switches.h", + ], + + r"cloud_policy_invalidator_unittest\.cc": [ + "+chrome/browser/invalidation/fake_invalidation_service.h", + ], + + r"cloud_policy_manager_unittest\.cc": [ + "+chrome/browser/invalidation/fake_invalidation_service.h", + ], + + r"cloud_policy_refresh_scheduler\.cc": [ + "+chrome/browser/chrome_notification_types.h", + "+content/public/browser/notification_details.h", + ], + + r"cloud_policy_refresh_scheduler_unittest\.cc": [ + "+chrome/browser/prefs/browser_prefs.h", + ], + + r"cloud_policy_validator\.cc": [ + "+content/public/browser/browser_thread.h", + ], + + r"cloud_policy_validator_unittest\.cc": [ + "+content/public/test/test_browser_thread.h", + ], + + r"component_cloud_policy_service\.cc": [ + "+content/public/browser/browser_thread.h", + ], + + r"component_cloud_policy_service_unittest\.cc": [ + "+chrome/common/policy/policy_schema.h", + "+content/public/browser/browser_thread.h", + "+content/public/test/test_browser_thread.h", + ], + + r"device_management_service\.cc": [ + "+chrome/browser/browser_process.h", + "+chrome/browser/net/basic_http_user_agent_settings.h", + "+chrome/browser/net/chrome_net_log.h", + "+chrome/common/chrome_version_info.h", + "+content/public/browser/browser_thread.h", + "+content/public/common/content_client.h", + "+chrome/browser/chromeos/system/statistics_provider.h", + ], + + r"device_management_service_unittest\.cc": [ + "+chrome/test/base/testing_browser_process.h", + "+content/public/test/test_browser_thread_bundle.h", + ], + + r"test_request_interceptor\.cc": [ + "+content/public/browser/browser_thread.h", + "+content/public/test/test_utils.h", + "+content/test/net/url_request_mock_http_job.h", + ], + + r"user_cloud_policy_invalidator\.cc": [ + "+chrome/browser/chrome_notification_types.h", + "+content/public/browser/notification_source.h", + ], + + r"user_cloud_policy_invalidator_factory\.cc": [ + "+chrome/browser/invalidation/invalidation_service_factory.h", + "+chrome/browser/profiles/profile.h", + "+chrome/common/chrome_switches.h", + "+chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h", + "+chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.h", + ], + + r"user_cloud_policy_invalidator\.h": [ + "+content/public/browser/notification_observer.h", + "+content/public/browser/notification_registrar.h", + ], + + r"user_cloud_policy_manager\.cc": [ + "+chrome/common/pref_names.h", + ], + + r"user_cloud_policy_manager_factory\.cc": [ + "+chrome/browser/profiles/profile.h", + "+chrome/common/chrome_switches.h", + ], + + r"user_cloud_policy_store\.cc": [ + "+chrome/browser/profiles/profile.h", + "+chrome/browser/signin/signin_manager.h", + "+chrome/browser/signin/signin_manager_factory.h", + "+content/public/browser/browser_thread.h", + ], + + r"user_cloud_policy_store_unittest\.cc": [ + "+chrome/browser/signin/fake_signin_manager.h", + "+chrome/browser/signin/signin_manager.h", + "+chrome/browser/signin/signin_manager_factory.h", + "+chrome/common/pref_names.h", + "+chrome/test/base/testing_profile.h", + "+content/public/test/test_browser_thread.h", + ], +} diff --git a/chrome/browser/policy/test/DEPS b/chrome/browser/policy/test/DEPS new file mode 100644 index 0000000..eec0a932 --- /dev/null +++ b/chrome/browser/policy/test/DEPS @@ -0,0 +1,18 @@ +# The //chrome/browser/policy code is being converted into a component at +# //components/policy. This DEPS file is temporarily restricting the include +# rules for this code; once all the exceptions are fixed then the code will +# be moved, and this file will be removed. +# http://crbug.com/271392 + +include_rules = [ + "-chrome", + "-chromeos", + "-content", + "+chrome/browser/policy", +] + +specific_include_rules = { + r"local_policy_test_server\.cc": [ + "+chrome/common/chrome_paths.h", + ], +} |