Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1168)

Unified Diff: chrome/browser/sync/profile_sync_service.cc

Issue 225403021: Extract Profile-independent GCMService from GCMProfileService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Provide GCMService with the list of all accounts. It does use it after all. Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync/profile_sync_service.cc
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc
index 6c368da6333c5206efaedf59d3cb4054774c4914..2e7864be8a763a375b24f0dfe0e1b4bf061c1fb6 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -31,6 +31,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/services/gcm/gcm_profile_service.h"
#include "chrome/browser/services/gcm/gcm_profile_service_factory.h"
+#include "chrome/browser/services/gcm/gcm_service.h"
#include "chrome/browser/signin/about_signin_internals_factory.h"
#include "chrome/browser/signin/profile_oauth2_token_service_factory.h"
#include "chrome/browser/signin/signin_manager_factory.h"
@@ -1010,13 +1011,13 @@ void ProfileSyncService::OnExperimentsChanged(
profile()->GetPrefs()->SetBoolean(prefs::kGCMChannelEnabled,
experiments.gcm_channel_state ==
syncer::Experiments::ENABLED);
- gcm::GCMProfileService* gcm_profile_service =
+ gcm::GCMService* gcm_service =
gcm::GCMProfileServiceFactory::GetForProfile(profile());
- if (gcm_profile_service) {
+ if (gcm_service) {
if (experiments.gcm_channel_state == syncer::Experiments::SUPPRESSED)
- gcm_profile_service->Stop();
+ gcm_service->Stop();
else
- gcm_profile_service->Start();
+ gcm_service->Start();
}
} else {
profile()->GetPrefs()->ClearPref(prefs::kGCMChannelEnabled);

Powered by Google App Engine
This is Rietveld 408576698