Retries with exponential backoff for dismissals.
Unification of retry mechanisms for updating cards and dismissals.

BUG=164227
TEST=For updating cards: all previously existing tests apply. Make sure that existing tests include checking for exponentially growing (with random jitter) retry period starting with a random value between 5-6 min till we get to 1 hour. Make sure that the tests check that after successfully receiving cards, next update will be exactly after the time suggested by the server.
For dismissals: modify existing tests to expect exponentially growing retry period, starting from 1-1.2 minutes, capped by 1 hour. After dismissal success, dismissal retries should stop.

Review URL: https://chromiumcodereview.appspot.com/14743007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@200368 0039d316-1c4b-4281-b951-d872f2087c98
3 files changed