User profile: Save the profile creation time in profile prefs
Profile::GetCreationTime relied on the directory's creation time, which is not supported by all the file systems. For example, in POSIX we use the st_ctim property, which is the last file status change timestamp. Using the prefs will ensure that the creation time never changes if the profile directory is copied or if the file creation time is not supported by the file system. This also ensures that Profile::GetCreationTime works properly across enterprise snapshots. Bug: 958893 Change-Id: I4e6189642939bb52524c412a9146087d597320dc Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2079163 Commit-Queue: Yann Dago <ydago@chromium.org> Reviewed-by:David Roger <droger@chromium.org> Cr-Commit-Position: refs/heads/master@{#746813}
Showing
Please register or sign in to comment