Change the return type of Configurator::InitialDelay from int to double.
This allows the Configurator::InitialDelay function to return sub-second values for unit-testing and functional-testing of //chrome/updater. The code in the CUS service was changed to convert from double to a TimeDelta. Also, the Configurator code was changed to parse a literal to double. Where possible, the type was changed from int to double. In general, the standard conversion from int to double is used (for instance in unit tests). It's possible that there might be cases where a truncation from double to int occurs (because these call sites were missed) but this should not create an issue at runtime because the values involved in the initial delay are small. Bug: 1144151 Change-Id: I66d00c4d4c7bdf241465129619a6c20fd8c895db Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2635022Reviewed-by:Joshua Pawlicki <waffles@chromium.org> Commit-Queue: Sorin Jianu <sorin@chromium.org> Cr-Commit-Position: refs/heads/master@{#845014}
Showing
Please register or sign in to comment