Simplify Linux Distro getter in linux_util.cc
Rather than using complex singleton/state/locking, just use a static variable and let the compiler ensure it's only initialized once. Bug: None R=thestig Change-Id: I95b169d8eeaea297296b65983d6d4c116b88159e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2031540 Commit-Queue: Thomas Anderson <thomasanderson@chromium.org> Reviewed-by:Lei Zhang <thestig@chromium.org> Auto-Submit: Thomas Anderson <thomasanderson@chromium.org> Cr-Commit-Position: refs/heads/master@{#737571}
Showing
Please register or sign in to comment