-
Erik Chen authored
Device attributes are used by the extension API enterprise.deviceAttributes. This API is in the process of being replaced by a new Web API. In both cases, we need to add a crosapi to support this API in Lacros. This CL adds plumbing for the five methods in enterprise.deviceAttributes. From a security perspective, the Lacros implementation checks that the profile is the "main profile" -- which is to say it's affiliated with the log-in ash-chrome proifle. The ash implementation of the crosapi then checks that the profile is a regular, sign-in profile that is affiliated with the device. These security checks mimic the security checks for the existing ash implementation of enterprise.deviceAttributes. Change-Id: Ic4bd2ce88041a3bc7b2af94fa52fef2f0722aac7 Bug: 1164523, 1165882 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2623722 Commit-Queue: Erik Chen <erikchen@chromium.org> Reviewed-by:
Maksim Ivanov <emaxx@chromium.org> Reviewed-by:
James Cook <jamescook@chromium.org> Reviewed-by:
Karan Bhatia <karandeepb@chromium.org> Cr-Commit-Position: refs/heads/master@{#843127}
3a80d96b