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

Unified Diff: components/gcm_driver/gcm_driver.h

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/gcm_driver/gcm_driver.h
diff --git a/components/gcm_driver/gcm_driver.h b/components/gcm_driver/gcm_driver.h
index 04fb53660dbd7db2ec8ee9603c895b46c1baab50..15e75dec5822d392f0655bf3470961e3c666bddb 100644
--- a/components/gcm_driver/gcm_driver.h
+++ b/components/gcm_driver/gcm_driver.h
@@ -50,8 +50,11 @@ class GCMDriver {
// Unregisters an app from using GCM.
// |app_id|: application ID.
+ // |sender_ids|: list of IDs of the sender IDs that were passed when
jianli 2015/02/12 20:03:30 "IDs of the sender IDs" seems to be a bit redundan
johnme 2015/02/13 19:11:56 Done.
+ // registering. On desktop these are ignored.
jianli 2015/02/12 20:03:30 Avoid mentioning desktop. Probably non-Android is
johnme 2015/02/13 19:11:56 Done.
// |callback|: to be called once the asynchronous operation is done.
void Unregister(const std::string& app_id,
+ const std::vector<std::string>& sender_ids,
const UnregisterCallback& callback);
// Sends a message to a given receiver.
@@ -144,7 +147,8 @@ class GCMDriver {
const std::vector<std::string>& sender_ids) = 0;
// Platform-specific implementation of Unregister.
- virtual void UnregisterImpl(const std::string& app_id) = 0;
+ virtual void UnregisterImpl(const std::string& app_id,
+ const std::vector<std::string>& sender_ids) = 0;
// Platform-specific implementation of Send.
virtual void SendImpl(const std::string& app_id,

Powered by Google App Engine
This is Rietveld 408576698