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

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

Issue 165993005: [GCM] Make sure GCM checkout logic is invoked when the profile is signed out (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 6 years, 10 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 09090fd6f86a0eacab78f2e17891c3e357e3ac9e..cfe8726a99762008cc669c24ba2d2d7649ea350e 100644
--- a/chrome/browser/sync/profile_sync_service.cc
+++ b/chrome/browser/sync/profile_sync_service.cc
@@ -1082,6 +1082,8 @@ void ProfileSyncService::OnExperimentsChanged(
experiments.gcm_channel_state ==
syncer::Experiments::ENABLED);
gcm::GCMProfileServiceFactory::GetForProfile(profile());
+ } else {
+ profile()->GetPrefs()->ClearPref(prefs::kGCMChannelEnabled);
}
if (experiments.enhanced_bookmarks_enabled) {

Powered by Google App Engine
This is Rietveld 408576698