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_client_impl.cc

Issue 2473813002: Notify GCMAppHandlers when the store is reset, so they clear cached IDs (Closed)
Patch Set: Clearer comment in GCMAppHander 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 080a7d006fb208bdbcff659566dec87c476f049b..f4211dbfd55158abb9fa370dcb674f377379cc45 100644
--- a/components/gcm_driver/gcm_client_impl.cc
+++ b/components/gcm_driver/gcm_client_impl.cc
@@ -812,6 +812,8 @@ void GCMClientImpl::DestroyStoreCallback(bool success) {
}
void GCMClientImpl::ResetStoreCallback(bool success) {
+ delegate_->OnStoreReset();
jianli 2016/11/08 23:54:57 Do we want to call OnStoreReset if |success| is fa
johnme 2016/11/09 19:33:48 Yes, I think so. Looking at the source code of lev
jianli 2016/11/09 21:54:23 Please add some comments to explain this.
johnme 2016/11/10 19:56:54 Done.
+
if (!success) {
LOG(ERROR) << "Failed to reset GCM store";
RecordResetStoreErrorToUMA(DESTROYING_STORE_FAILED);

Powered by Google App Engine
This is Rietveld 408576698