[GCM] Adding retry logic to registration
commitb4dd023d416eb102527213bd76e00877623ca863
authorfgorski@chromium.org <fgorski@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 8 Feb 2014 02:37:31 +0000 (8 02:37 +0000)
committerfgorski@chromium.org <fgorski@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 8 Feb 2014 02:37:31 +0000 (8 02:37 +0000)
tree6b621d09fdca50dc213b6c3cba8fe4c4c4409684
parent1d8571b5a25ce3de07b06daefc133d3b9d1f2372
[GCM] Adding retry logic to registration

* in certain cases, we want to repeat the registration if the first attempt fails, e.g. malformed response, or credentials not being propagated yet.
* also adding response parsing into a relevant status.

BUG=284553

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@249904 0039d316-1c4b-4281-b951-d872f2087c98
google_apis/gcm/engine/registration_request.cc
google_apis/gcm/engine/registration_request.h
google_apis/gcm/engine/registration_request_unittest.cc
google_apis/gcm/gcm_client_impl.cc
google_apis/gcm/gcm_client_impl.h