[Sync] Add url fetch timeout logic
commitb4104348712f14b49b6a5c7c6c857a9543a4fb5d
authorzea <zea@chromium.org>
Thu, 18 Dec 2014 03:12:10 +0000 (17 19:12 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 18 Dec 2014 03:12:36 +0000 (18 03:12 +0000)
tree4f3c2fdbc1abbe3693425297c51c39cf05b65e83
parent42b70b4a7f7a60375cb1ac7d89a1e1230a959084
[Sync] Add url fetch timeout logic

It's possible for a url fetch to stall silently. This patch adds a 5 minute
timeout mechanism which will cancel the url fetch when triggered, resulting
in a retry with backoff. Also add histograms to track how often this is
getting hit and how long url fetches take to complete in general.

BUG=427972

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

Cr-Commit-Position: refs/heads/master@{#308939}
sync/internal_api/http_bridge.cc
sync/internal_api/public/http_bridge.h
tools/metrics/histograms/histograms.xml