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

Unified Diff: components/gcm_driver/gcm_client_impl.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_client_impl.cc
diff --git a/components/gcm_driver/gcm_client_impl.cc b/components/gcm_driver/gcm_client_impl.cc
index 62b58b61f72032c5747a22438db302981330f1be..90a81b33c49970f1ee7fa14f2b2aacbeae880c0a 100644
--- a/components/gcm_driver/gcm_client_impl.cc
+++ b/components/gcm_driver/gcm_client_impl.cc
@@ -811,6 +811,8 @@ void GCMClientImpl::DestroyStoreCallback(bool success) {
}
void GCMClientImpl::ResetStoreCallback(bool success) {
+ delegate_->OnStoreReset();
+
if (!success) {
LOG(ERROR) << "Failed to reset GCM store";
RecordResetStoreErrorToUMA(DESTROYING_STORE_FAILED);

Powered by Google App Engine
This is Rietveld 408576698