Exponential backoff and retry for MergeSession requests.
commit5a8feafa6f5716145d1659e2ecdd8769d8bc8901
authormlerman <mlerman@chromium.org>
Fri, 3 Apr 2015 14:01:16 +0000 (3 07:01 -0700)
committerCommit bot <commit-bot@chromium.org>
Fri, 3 Apr 2015 14:01:43 +0000 (3 14:01 +0000)
treea80c153b23c993b7c5de8053fcce413fe9249c6f
parentef37b3c513640386bcc709c10e7decc132b59f47
Exponential backoff and retry for MergeSession requests.

This CL makes the MergeSession requests within the GaiaCookieManagerService have automatic retry and exponential backoff functionality. This piece if prioritized ahead of most of the refactoring so it can get in for M43 branch point, since it will greatly smooth certain use cases on Android and iOS.

Current configuration will retry after: 1s, 3s, 9s, 27s, 1.4min (81s), 4min (243s), 12min (732s).

BUG=471210, 466799

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

Cr-Commit-Position: refs/heads/master@{#323739}
components/signin/core/browser/gaia_cookie_manager_service.cc
components/signin/core/browser/gaia_cookie_manager_service.h
components/signin/core/browser/gaia_cookie_manager_service_unittest.cc