[GCM] Support persisting registration info for GCMProfileService
commit363f7b2a58deccb0054b87e3cbdbb64a287b0465
authorjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Dec 2013 04:36:41 +0000 (4 04:36 +0000)
committerjianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 4 Dec 2013 04:36:41 +0000 (4 04:36 +0000)
tree94e2d733f37d868554c1eb1a75f1d306ebdc7a42
parent8f67732ce65f32a31243641b224ef3ea0700b33e
[GCM] Support persisting registration info for GCMProfileService

The registration info, including sender IDs and registration ID, is saved into extension's state store. It will be loaded when the app gets loaded.

BUG=284553
TEST=new tests added

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@238566 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/services/gcm/gcm_profile_service.cc
chrome/browser/services/gcm/gcm_profile_service.h
chrome/browser/services/gcm/gcm_profile_service_unittest.cc
google_apis/gcm/gcm_client.h