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

Unified Diff: google_apis/gcm/gcm_client_impl.cc

Issue 183923006: [GCM] API update to allow only a single sender in registration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updates based on CR. Changing how the senders/reg_ids are stored to avoid upgrade to multiple sedne… Created 6 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: google_apis/gcm/gcm_client_impl.cc
diff --git a/google_apis/gcm/gcm_client_impl.cc b/google_apis/gcm/gcm_client_impl.cc
index 640977afb806f28efd0624d4a181f0d7495b2a5c..d7e5ef8ea297d8fcd43cb64ecd0de1dee92fb7cc 100644
--- a/google_apis/gcm/gcm_client_impl.cc
+++ b/google_apis/gcm/gcm_client_impl.cc
@@ -298,14 +298,14 @@ void GCMClientImpl::CheckOut() {
void GCMClientImpl::Register(const std::string& app_id,
const std::string& cert,
- const std::vector<std::string>& sender_ids) {
+ const std::string& sender_id) {
DCHECK_EQ(state_, READY);
RegistrationRequest::RequestInfo request_info(
device_checkin_info_.android_id,
device_checkin_info_.secret,
app_id,
cert,
- sender_ids);
+ sender_id);
DCHECK_EQ(0u, pending_registrations_.count(app_id));
RegistrationRequest* registration_request =

Powered by Google App Engine
This is Rietveld 408576698