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

Unified Diff: components/gcm_driver/gcm_driver_desktop.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: components/gcm_driver/gcm_driver_desktop.cc
diff --git a/components/gcm_driver/gcm_driver_desktop.cc b/components/gcm_driver/gcm_driver_desktop.cc
index 672296656784a79d914aaf97f3f695f6e3d9070f..17ca12b2c0bc6c9fc48f48ead99972b6d4a659f8 100644
--- a/components/gcm_driver/gcm_driver_desktop.cc
+++ b/components/gcm_driver/gcm_driver_desktop.cc
@@ -369,13 +369,17 @@ void GCMDriverDesktop::OnSignedIn() {
EnsureStarted();
}
+void GCMDriverDesktop::OnSignedOut() {
+ signed_in_ = false;
+ Purge();
+}
+
void GCMDriverDesktop::Purge() {
DCHECK(ui_thread_->RunsTasksOnCurrentThread());
// We still proceed with the check-out logic even if the check-in is not
// initiated in the current session. This will make sure that all the
// persisted data written previously will get purged.
- signed_in_ = false;
RemoveCachedData();
fgorski 2014/09/12 20:15:53 this causes a wipe of Device ID, right? Please lo
jianli 2014/09/12 22:13:10 Removed the confusing comment here. Also updated O
io_thread_->PostTask(FROM_HERE,

Powered by Google App Engine
This is Rietveld 408576698