chromium/components/policy/resources/templates/policy_definitions/Printing/DefaultPrinterSelection.yaml

arc_support: This policy has no effect on Android apps.
caption: Default printer selection rules
desc: |-
  Setting the policy sets the rules for selecting the default printer in <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph>, overriding the default rules. Printer selection occurs the first time users try to print, when <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> seeks a printer matching the specified attributes. In case of a less than perfect match, <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> can be set to select any matching printer, depending on the order printers are discovered.

  Leaving the policy unset or set to attributes for which there's no match means the built-in PDF printer is the default. If there's no PDF printer, <ph name="PRODUCT_NAME">$1<ex>Google Chrome</ex></ph> defaults to none.

  Currently, all printers are classified as <ph name="PRINTER_TYPE_LOCAL">"local"</ph>. Printers connected to <ph name="CLOUD_PRINT_NAME">Google Cloud Print</ph> are considered <ph name="PRINTER_TYPE_CLOUD">"cloud"</ph>, but <ph name="CLOUD_PRINT_NAME">Google Cloud Print</ph> is no longer supported.

  Note: Omitting a field means all values match for that particular field. For example, not specifying idPattern means Print Preview accepts all printer IDs. Regular expression patterns must follow the JavaScript RegExp syntax, and matches are case sensistive.
example_value: '{ "kind": "local", "idPattern": ".*public", "namePattern": ".*Color" }'
features:
  dynamic_refresh: true
  per_profile: true
future_on:
- fuchsia
owners:
- file://printing/OWNERS
- [email protected]
schema:
  type: string
supported_on:
- chrome.*:48-
- chrome_os:48-
tags: []
type: string
validation_schema:
  properties:
    idPattern:
      description: Regular expression to match printer ID.
      type: string
    kind:
      description: Whether to limit the search of the matching printer to a specific
        set of printers.
      enum:
      - local
      - cloud
      type: string
    namePattern:
      description: Regular expression to match printer display name.
      type: string
  type: object