-
Harvey Yang authored
This commit replaces base::Singleton with base::NoDestructor. It helps to determine the lifetime of AccelerometerReader and avoid usages of it on invalid threads. BUG=b:171446270 TEST=run on nightfury(with iioservice) and helios(without iioservice) Change-Id: I55686e712a381c860054db14a1df00346b16ce6a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2543171Reviewed-by:
Xiaoqian Dai <xdai@chromium.org> Commit-Queue: Cheng-Hao Yang <chenghaoyang@chromium.org> Cr-Commit-Position: refs/heads/master@{#828553}
f39fb6ac