nearby: use performance.now() over Date() object
Similar to using base::TimeTicks over base::Time, performance.now() only ticks forward and allows us to not worry about system time changes. It also allows for easier mock in tests. Bug: 1156229 Test: browser_tests --gtest_filter=*NearbySh* Change-Id: Id1cf98d77b5f3557aaa95daf8a3114714ef97008 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2587613 Commit-Queue: Joon Ahn <joonbug@chromium.org> Reviewed-by:James Vecore <vecore@google.com> Reviewed-by:
Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#836769}
Showing
Please register or sign in to comment