This returns a double now, instead of an int.
Chromium changes:
https://chromium.googlesource.com/chromium/src.git/+/abb0ef991720bf5394a20f5cf77270ce923b72c9
commit abb0ef991720bf5394a20f5cf77270ce923b72c9
Author: Sorin Jianu <sorin@chromium.org>
Date: Wed Jan 20 04:21:32 2021 +0000
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