base: Add CreateTimeValue() and GetValueAsTime()
Currently we only support converting TimeDelta to/from Value, where 2 of the 3 references actually intend to store Time instead of TimeDelta. This CL adds functions to help convert Time to/from Value directly. Also update CreateTimeDeltaValue() and GetValueAsTimeDelta() to use FromMicroseconds() and InMicroseconds() instead of FromInternalValue() and ToInternalValue() which are deprecated. Bug: 917527,928787 Change-Id: Icb0543031ab4f526cfe835d52e85c28efba66863 Reviewed-on: https://chromium-review.googlesource.com/c/1449326Reviewed-by:Lei Zhang <thestig@chromium.org> Reviewed-by:
Takashi Toyoshima <toyoshim@chromium.org> Reviewed-by:
Ben Wells <benwells@chromium.org> Reviewed-by:
Dmitry Gozman <dgozman@chromium.org> Reviewed-by:
Yuri Wiitala <miu@chromium.org> Commit-Queue: Xiaohan Wang <xhwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#630014}
Showing
Please register or sign in to comment