• Avi Drissman's avatar
    Fix OS Architecture under Rosetta · 909a9407
    Avi Drissman authored
    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: default avatarNico Weber <thakis@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#841164}
    909a9407
sys_info_posix.cc 6.52 KB