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

Unified Diff: components/gcm_driver/gcm_account_mapper.cc

Issue 2473813002: Notify GCMAppHandlers when the store is reset, so they clear cached IDs (Closed)
Patch Set: Created 4 years, 1 month 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_account_mapper.cc
diff --git a/components/gcm_driver/gcm_account_mapper.cc b/components/gcm_driver/gcm_account_mapper.cc
index db81c3aec99170c2c9e26ff43522186fda8f3f74..7e80280bc9af454f2b682fc2be24fd5668f9a245 100644
--- a/components/gcm_driver/gcm_account_mapper.cc
+++ b/components/gcm_driver/gcm_account_mapper.cc
@@ -150,6 +150,11 @@ void GCMAccountMapper::ShutdownHandler() {
dispatch_message_callback_.Reset();
}
+void GCMAccountMapper::OnStoreReset() {
+ // Nothing to do here since GCMAccountMapper doesn't locally persist
+ // registration ID, instead it just re-registers.
Peter Beverloo 2016/11/03 17:28:56 registration_id_
johnme 2016/11/08 19:22:41 Done (now calls ShutdownHandler).
+}
+
void GCMAccountMapper::OnMessage(const std::string& app_id,
const IncomingMessage& message) {
DCHECK_EQ(app_id, kGCMAccountMapperAppId);

Powered by Google App Engine
This is Rietveld 408576698