• Sorin Jianu's avatar
    Change the return type of Configurator::InitialDelay from int to double. · abb0ef99
    Sorin Jianu authored
    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: default avatarJoshua Pawlicki <waffles@chromium.org>
    Commit-Queue: Sorin Jianu <sorin@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#845014}
    abb0ef99
external_constants.cc 1.5 KB