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

Unified Diff: components/invalidation/gcm_invalidation_bridge.cc

Issue 914693002: Push API: Fix unsubscribing from GCM on Android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Now compiles and passes tests (and uses CHECK_EQ) Created 5 years, 10 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/invalidation/gcm_invalidation_bridge.cc
diff --git a/components/invalidation/gcm_invalidation_bridge.cc b/components/invalidation/gcm_invalidation_bridge.cc
index ef09594c2b710b1fe4e7d67d22ca4f4b361b6c6c..d07ef966d4ff9c356b4e24b3ec3bdb074d34b626 100644
--- a/components/invalidation/gcm_invalidation_bridge.cc
+++ b/components/invalidation/gcm_invalidation_bridge.cc
@@ -286,8 +286,11 @@ void GCMInvalidationBridge::Unregister() {
if (gcm_driver_ == NULL)
return;
+ std::vector<std::string> sender_ids;
+ sender_ids.push_back(kInvalidationsSenderId);
gcm_driver_->Unregister(
kInvalidationsAppId,
+ sender_ids,
base::Bind(&GCMInvalidationBridge::UnregisterFinishedNoOp));
}

Powered by Google App Engine
This is Rietveld 408576698