UMA: use SetTime/GetTime for persisted values
Following the guidance at https://crbug.com/634507#c45, this swaps out spots which use ToInternalValue/FromInternalValue for persisting a base::Time in prefs, in favor of PrefService::SetTime()/GetTime(). I verified these internally use From/ToDeltaSinceWindowsEpoch(), which is consistent with the internal implementation of base::Time. Bug: 1010369 Test: None Change-Id: I6a7ba2e93610702e33482eb830bb34ef61a50f89 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1839634Reviewed-by:Ilya Sherman <isherman@chromium.org> Commit-Queue: Nate Fischer <ntfschr@chromium.org> Cr-Commit-Position: refs/heads/master@{#703463}
Showing
Please register or sign in to comment