09c943a7e347b831d53f02b426d8e9554b70a045

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 <ljusten@chromium.org> Reviewed-by: Dan Erat <derat@chromium.org> Reviewed-by: Julian Pastarmov <pastarmovj@chromium.org> Reviewed-by: Sean Kau <skau@chromium.org> Cr-Commit-Position: refs/heads/master@{#550466}
…
…
Chromium
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 .
Description
Chromium是一个开源浏览器项目,提供了一种安全、快速、稳定的方法来体验Web。该浏览器可以在多个平台上下载,包括Mac、Windows、Linux和ChromiumOS。项目原始地址: https://chromium.googlesource.com/chromium/src.git
https://www.mobibrw.com/gitea-mirrors/chromium/src.git
Languages
C++
74.4%
Java
8.2%
Objective-C++
4.6%
TypeScript
4%
Python
2.5%
Other
6.1%