[SC] Fix the linux version identification to follow the native host
The code used to read the version string as provided by the uname command but the native host reads the string from the /etc/os-release file. This CL unifies the API implementation with the native host but preserves the uname approach as a fallback in case the file is not present or does not follow the expected format. BUG=1114196 TEST=unit_tests:EnterpriseReportingPrivateGetDeviceInfoTest.GetDeviceInfo Change-Id: Ie07314ef4cdbdbbbc8b1abf0784b8e54d454217a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2339631Reviewed-by:Owen Min <zmin@chromium.org> Commit-Queue: Julian Pastarmov <pastarmovj@chromium.org> Cr-Commit-Position: refs/heads/master@{#795990}
Showing
Please register or sign in to comment