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

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: Pass scoped_refptr as const reference. 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 fce995895f4b3daa64f95cc3cff52b8c5b00ad66..c4eafb4bc8fa510f6e89704e6861e9adb2a8f375 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"
@@ -1012,13 +1013,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 =
jianli 2014/04/10 20:39:56 GCMProfileServiceFactory::GetForProfile returns GC
bartfab (slow) 2014/04/11 16:58:52 I wanted to make it explicit that in this case her
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