commit | 09c943a7e347b831d53f02b426d8e9554b70a045 | [log] [tgz] |
---|---|---|
author | Lutz Justen <[email protected]> | Fri Apr 13 01:49:19 2018 |
committer | Commit Bot <[email protected]> | Fri Apr 13 01:49:19 2018 |
tree | 6b8e11df1469ccabdfb8197f83c6bafb2d7f68c2 | |
parent | 5ea1b5bd42daa62161677fd06a185f12064a8322 [diff] |
Allow variable expansion in native printer policy Enables variable expansion for the NativePrinters policy on Active Directory managed devices. The expansion exchanges ${machine_name} by the Active Directory computer name for all JSON fields. Also supports substrings, e.g. ${machine_name,6,4} = 4 chars from pos 6. Cloud managed devices usually don't have a human-readable device name, so expansion isn't supported yet (although there's a machine_name field in PolicyData that one might use). More variables and policies can be easily added in the future. BUG=chromium:829279 TEST=chromeos_unittests --gtest_filter=VariableExpanderTest.* Set NativePrinters (aka 'Native Printing') policy in Active Directory GPO with display_name = '${machine_name}' for some printer. On AD managed device, get policy from the AD server and print a page. Select printers. A printer with the name of the Chromebook should appear. Also check device name shows up on chrome://policy under NativePrinters. Change-Id: I5fe6185b6bb48bf5d28a7ab4f53be1553fca18b5 Reviewed-on: https://chromium-review.googlesource.com/1001576 Commit-Queue: Lutz Justen <[email protected]> Reviewed-by: Dan Erat <[email protected]> Reviewed-by: Julian Pastarmov <[email protected]> Reviewed-by: Sean Kau <[email protected]> Cr-Commit-Position: refs/heads/master@{#550466}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .