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

Unified Diff: chrome/browser/services/gcm/gcm_profile_service.cc

Issue 562423002: Clear GCM data when the user clears cookies and other site data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix ExtensionBrowsingDataTest tests Created 6 years, 3 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/services/gcm/gcm_profile_service.cc
diff --git a/chrome/browser/services/gcm/gcm_profile_service.cc b/chrome/browser/services/gcm/gcm_profile_service.cc
index 0539acc212bc5dcee3ad535f239acc9b35705254..ad0e1f42cbaafdb91e2ba4c6bdda53313c6ec778 100644
--- a/chrome/browser/services/gcm/gcm_profile_service.cc
+++ b/chrome/browser/services/gcm/gcm_profile_service.cc
@@ -116,9 +116,9 @@ void GCMProfileService::IdentityObserver::OnActiveAccountLogout() {
// Check is necessary to not crash browser_tests.
if (gcm_account_tracker_)
gcm_account_tracker_->Stop();
- // TODO(fgorski): If we purge here, what should happen when we get
- // OnActiveAccountLogin() right after that?
- driver_->Purge();
+ // OnSignedOut will also clear all the GCM data. If the user signs in again,
+ // a new GCM ID will be retrieved.
+ driver_->OnSignedOut();
fgorski 2014/09/12 20:15:53 If we are not changing Device Id in this case, ple
jianli 2014/09/12 22:13:10 Updated the comment.
}
std::string GCMProfileService::IdentityObserver::SignedInUserName() const {

Powered by Google App Engine
This is Rietveld 408576698