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

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: Update Cryptauth comment 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
« no previous file with comments | « components/gcm_driver/gcm_account_mapper.h ('k') | components/gcm_driver/gcm_app_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..02ba9f1ab596ac074c83546b66bad26bffb986c2 100644
--- a/components/gcm_driver/gcm_account_mapper.cc
+++ b/components/gcm_driver/gcm_account_mapper.cc
@@ -150,6 +150,12 @@ void GCMAccountMapper::ShutdownHandler() {
dispatch_message_callback_.Reset();
}
+void GCMAccountMapper::OnStoreReset() {
+ // TODO(crbug.com/661660): Tell server to remove the mapping. But can't use
+ // upstream GCM send for that since the store got reset.
+ ShutdownHandler();
+}
+
void GCMAccountMapper::OnMessage(const std::string& app_id,
const IncomingMessage& message) {
DCHECK_EQ(app_id, kGCMAccountMapperAppId);
« no previous file with comments | « components/gcm_driver/gcm_account_mapper.h ('k') | components/gcm_driver/gcm_app_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698