Stop retring GCM unregistration requests after reaching maximum number
commit297653965e4ac1cc799018470e6a3e66192c51dd
authorjianli <jianli@chromium.org>
Thu, 18 Jun 2015 20:43:21 +0000 (18 13:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 18 Jun 2015 20:44:42 +0000 (18 20:44 +0000)
treefe07f1482b4ac19b90a4401c8e7a3ba75543c939
parentec71b85a0a8f70ca37678073406898cb8b054926
Stop retring GCM unregistration requests after reaching maximum number
of retries

Also, we should retry for HTTP_NOT_OK and NO_RESPONSE_BODY.

BUG=501081
TEST=new tests

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

Cr-Commit-Position: refs/heads/master@{#335116}
components/gcm_driver/gcm_client_impl.cc
components/gcm_driver/gcm_stats_recorder_impl.cc
components/gcm_driver/gcm_stats_recorder_impl.h
components/gcm_driver/gcm_stats_recorder_impl_unittest.cc
google_apis/gcm/engine/unregistration_request.cc
google_apis/gcm/engine/unregistration_request.h
google_apis/gcm/engine/unregistration_request_unittest.cc
google_apis/gcm/monitoring/fake_gcm_stats_recorder.cc
google_apis/gcm/monitoring/fake_gcm_stats_recorder.h
google_apis/gcm/monitoring/gcm_stats_recorder.h
tools/metrics/histograms/histograms.xml