Fix OS Architecture under Rosetta
base::SysInfo::OperatingSystemArchitecture() should return the architecture of the underlying OS, not the architecture of the Chromium binary. However, arch(3) under Rosetta will lie. Therefore, on the Mac, rely on the documented API to determine if Chromium is running under Rosetta and return correct values. Fixed: 1155315 Change-Id: I94e851b8e64eeacf776d1fed0579e5e543539402 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2613154 Commit-Queue: Avi Drissman <avi@chromium.org> Auto-Submit: Avi Drissman <avi@chromium.org> Reviewed-by:Nico Weber <thakis@chromium.org> Cr-Commit-Position: refs/heads/master@{#841164}
Showing
Please register or sign in to comment