Update WebCORSPreflightResultCacheItem to use TimeDelta

This CL updates WebCORSPreflightResultCache to use TimeDelta as the time
type instead of double. And, adds an injection point of TickClock to
WebCORSPreflightResultCacheItem to avoid overriding global time.

Change-Id: Ia8251c0a8ae2edfd107a8ddf22b421942c2683ad
Reviewed-on: https://chromium-review.googlesource.com/790181
Commit-Queue: Taiju Tsuiki <tzik@chromium.org>
Reviewed-by: Kinuko Yasuda <kinuko@chromium.org>
Reviewed-by: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/master@{#519600}

CrOS-Libchrome-Original-Commit: aaa48e694f13c2f7591d60ed4ec104fcee8240d9
2 files changed
tree: 315c711116cba775f578c682894fcc90505f96f7
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/