Fix MDnsClient's cache entry cleanup logic.
commit3e740be5fa1026ae8b39d99f1180b7c39b9d4b12
authorkmarshall <kmarshall@chromium.org>
Mon, 2 Mar 2015 21:30:44 +0000 (2 13:30 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 2 Mar 2015 21:31:39 +0000 (2 21:31 +0000)
tree0f579231925e88d5ac66671aba3d5f04e852e723
parent6c6d81a4532b2140dc05cc298995122e9f9948cf
Fix MDnsClient's cache entry cleanup logic.
The current implementation has an error in its time delay computation.
It computes negative timedeltas for cache entries that are
> Now(). This causes a CHECK failure in
IncomingTaskQueue::CalculateDelayedRuntime.

BUG=459443
CC=mfoltz@chromium.org

Review URL: https://codereview.chromium.org/937743003

Cr-Commit-Position: refs/heads/master@{#318766}
net/dns/mdns_client_impl.cc
net/dns/mdns_client_impl.h
net/dns/mdns_client_unittest.cc