Use a static variable to store creation time of first run.
Calling GetFileInfo() is a blocking call and because the desktop feature tracker needs the first run creation time, it was performing file I/O on the UI thread causing jank. This change moves getting the creation time to sentinel creation and caches that result in a static variable. Bug: 785189 Change-Id: Ia4b4e5783bf3e6d06c9812661d7930384cbf9b21 Reviewed-on: https://chromium-review.googlesource.com/773445Reviewed-by:Carlos Pizano <cpu@chromium.org> Reviewed-by:
Robert Liao <robliao@chromium.org> Reviewed-by:
Wez <wez@chromium.org> Commit-Queue: Bettina Dea <bdea@chromium.org> Cr-Commit-Position: refs/heads/master@{#517914}
Showing
Please register or sign in to comment