diff options
author | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-27 13:46:54 +0000 |
---|---|---|
committer | jianli@chromium.org <jianli@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-02-27 13:46:54 +0000 |
commit | d3a4b2e40b18a40182ab51297d495152877a2789 (patch) | |
tree | 1ade7454699c8db8bd06d619d68a9169cde49e93 /chrome/browser/services/gcm/fake_gcm_profile_service.cc | |
parent | 101c55eb67ea9c90f02ece6d919e5dfd8f498841 (diff) | |
download | chromium_src-d3a4b2e40b18a40182ab51297d495152877a2789.zip chromium_src-d3a4b2e40b18a40182ab51297d495152877a2789.tar.gz chromium_src-d3a4b2e40b18a40182ab51297d495152877a2789.tar.bz2 |
[GCM] Make sure GCM checkout logic is invoked when the profile is signed out
We now always create GCMProfileService that listens to profile
notifications such that GCM checkout logic could be invoked when the
profile is signed out.
We now move the GCM check-in logic from GCMClient::Initialize to GCMClient::CheckIn.
BUG=344031
TEST=new tests added and existing tests updated
Review URL: https://codereview.chromium.org/165993005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@253787 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/services/gcm/fake_gcm_profile_service.cc')
-rw-r--r-- | chrome/browser/services/gcm/fake_gcm_profile_service.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/chrome/browser/services/gcm/fake_gcm_profile_service.cc b/chrome/browser/services/gcm/fake_gcm_profile_service.cc index dad6bff..c124f4f 100644 --- a/chrome/browser/services/gcm/fake_gcm_profile_service.cc +++ b/chrome/browser/services/gcm/fake_gcm_profile_service.cc @@ -19,11 +19,6 @@ BrowserContextKeyedService* FakeGCMProfileService::Build( return new FakeGCMProfileService(profile); } -// static -void FakeGCMProfileService::EnableGCMForTesting() { - GCMProfileService::enable_gcm_for_testing_ = true; -} - FakeGCMProfileService::FakeGCMProfileService(Profile* profile) : GCMProfileService(profile), collect_(false) {} |