chromium/chrome/browser/ash/policy/DEPS

include_rules = [
  # ChromeOS should not depend on //chrome. See //docs/chromeos/code.md for
  # details.
  "-chrome",

  # This directory is in //chrome, which violates the rule above. Allow this
  # directory to #include its own files.
  "+chrome/browser/ash/policy",

  # Existing dependencies within //chrome. There is an active effort to
  # refactor //chrome/browser/ash to break these dependencies; see b/332804822.
  # Whenever possible, avoid adding new //chrome dependencies to this list.
  #
  # Files residing in certain directories (e.g., //chrome/browser) are listed
  # individually. Other dependencies within //chrome are listed on a per-
  # directory basis. See //tools/chromeos/gen_deps.sh for details.
  "+chrome/browser/apps/app_service",
  "+chrome/browser/browser_process.h",
  "+chrome/browser/browser_process_platform_part_ash.h",
  "+chrome/browser/browser_process_platform_part.h",
  "+chrome/browser/chrome_content_browser_client.h",
  "+chrome/browser/chromeos/extensions",
  "+chrome/browser/chromeos/policy/dlp",
  "+chrome/browser/chromeos/reporting",
  "+chrome/browser/crash_upload_list",
  "+chrome/browser/device_identity",
  "+chrome/browser/enterprise/connectors",
  "+chrome/browser/enterprise/data_controls",
  "+chrome/browser/enterprise/reporting",
  "+chrome/browser/enterprise/util",
  "+chrome/browser/extensions/api/file_system",
  "+chrome/browser/extensions/api/tab_capture",
  "+chrome/browser/extensions/browsertest_util.h",
  "+chrome/browser/extensions/chrome_test_extension_loader.h",
  "+chrome/browser/extensions/crx_installer.h",
  "+chrome/browser/extensions/extension_service.h",
  "+chrome/browser/extensions/external_loader.h",
  "+chrome/browser/extensions/external_provider_impl.h",
  "+chrome/browser/extensions/install_observer.h",
  "+chrome/browser/extensions/install_tracker.h",
  "+chrome/browser/extensions/policy_handlers.h",
  "+chrome/browser/extensions/policy_test_utils.h",
  "+chrome/browser/extensions/updater",
  "+chrome/browser/file_select_helper.h",
  "+chrome/browser/invalidation",
  "+chrome/browser/lifetime",
  "+chrome/browser/media",
  "+chrome/browser/metrics",
  "+chrome/browser/net",
  "+chrome/browser/notifications",
  "+chrome/browser/policy",
  "+chrome/browser/prefs",
  "+chrome/browser/profiles",
  "+chrome/browser/sessions",
  "+chrome/browser/signin",
  "+chrome/browser/site_isolation",
  "+chrome/browser/support_tool",
  "+chrome/browser/sync",
  "+chrome/browser/tracing",
  "+chrome/browser/ui/ash",
  "+chrome/browser/ui/browser_commands.h",
  "+chrome/browser/ui/browser_finder.h",
  "+chrome/browser/ui/browser.h",
  "+chrome/browser/ui/browser_list.h",
  "+chrome/browser/ui/browser_list_observer.h",
  "+chrome/browser/ui/browser_window.h",
  "+chrome/browser/ui/tabs",
  "+chrome/browser/ui/web_applications/test",
  "+chrome/browser/ui/webui/ash/cloud_upload",
  "+chrome/browser/ui/webui/ash/login",
  "+chrome/browser/ui/webui/ash/settings/pages/storage",
  "+chrome/browser/ui/webui/certificates_handler.h",
  "+chrome/browser/ui/webui/support_tool",
  "+chrome/browser/unified_consent",
  "+chrome/browser/upgrade_detector",
  "+chrome/browser/web_applications/isolated_web_apps",
  "+chrome/browser/web_applications/mojom",
  "+chrome/browser/web_applications/test",
  "+chrome/browser/web_applications/user_display_mode.h",
  "+chrome/browser/web_applications/web_app.h",
  "+chrome/browser/web_applications/web_app_install_info.h",
  "+chrome/browser/web_applications/web_app_provider_factory.h",
  "+chrome/browser/web_applications/web_app_provider.h",
  "+chrome/browser/web_applications/web_app_registrar.h",
  "+chrome/common/channel_info.h",
  "+chrome/common/chrome_constants.h",
  "+chrome/common/chrome_content_client.h",
  "+chrome/common/chrome_features.h",
  "+chrome/common/chrome_paths.h",
  "+chrome/common/chrome_switches.h",
  "+chrome/common/extensions",
  "+chrome/common/pref_names.h",
  "+chrome/grit",
  "+chrome/test/base",

  # Run
  #
  #   buildtools/checkdeps/checkdeps.py chrome/browser/ash/policy
  #
  # to test.
  # Allow includes for shell-encryption and private_membership third_party libs.
  "+third_party/private_membership",
  "+third_party/shell-encryption",

  # Allow includes for remoting events reporting.
  "+remoting/host/chromeos",
  "+remoting/host/mojom",

  # Allow includes for security curtain shown in remoting sessions.
  "+remoting/host/curtain_mode_chromeos.h",

  # Allow includes for error codes.
  "+remoting/protocol/errors.h",
]

specific_include_rules = {
  "child_status_collector_browsertest.cc": [
    "+mojo/core/embedder/embedder.h",
  ],
  "device_status_collector_browsertest.cc": [
    "+mojo/core/embedder/embedder.h",
  ],
}