• tzik's avatar
    Use the shared instance of base::Default{,Tick}Clock in previews · 7393de07
    tzik authored
    This CL changes the ownership of base::Clock and base::TickClock from
    injectee-owned to injecter-owned. Before this CL, these instances are
    owned by the owner of the injectee or one of the injectees themselves.
    That makes the ownership complex.
    
    After this CL, the clock instances are always un-owned by injectees.
    Instead, an injecter owned one is used on testing, and the shared
    instance is used on production path.
    
    Bug: 789079
    Change-Id: Ic91e3cbb16c8d66131936b6b4c6e74ed212602c2
    Reviewed-on: https://chromium-review.googlesource.com/803154Reviewed-by: default avatarTarun Bansal <tbansal@chromium.org>
    Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#521191}
    7393de07
previews_io_data.cc 11 KB