| Index: google_apis/gcm/engine/registration_request.cc
|
| diff --git a/google_apis/gcm/engine/registration_request.cc b/google_apis/gcm/engine/registration_request.cc
|
| index a6fd0360b5e46f74495352d32be19aa7d7e71316..a16bcc7fe5f4be384756aa734339f259e08fcc58 100644
|
| --- a/google_apis/gcm/engine/registration_request.cc
|
| +++ b/google_apis/gcm/engine/registration_request.cc
|
| @@ -33,9 +33,6 @@ const char kDeviceIdKey[] = "device";
|
| const char kLoginHeader[] = "AidLogin";
|
| const char kSenderKey[] = "sender";
|
|
|
| -// Request validation constants.
|
| -const size_t kMaxSenders = 100;
|
| -
|
| // Response constants.
|
| const char kErrorPrefix[] = "Error=";
|
| const char kTokenPrefix[] = "token=";
|
| @@ -88,12 +85,12 @@ RegistrationRequest::RequestInfo::RequestInfo(
|
| uint64 security_token,
|
| const std::string& app_id,
|
| const std::string& cert,
|
| - const std::vector<std::string>& sender_ids)
|
| + const std::string& sender_id)
|
| : android_id(android_id),
|
| security_token(security_token),
|
| app_id(app_id),
|
| cert(cert),
|
| - sender_ids(sender_ids) {
|
| + sender_id(sender_id) {
|
| }
|
|
|
| RegistrationRequest::RequestInfo::~RequestInfo() {}
|
| @@ -120,8 +117,7 @@ void RegistrationRequest::Start() {
|
| DCHECK(request_info_.android_id != 0UL);
|
| DCHECK(request_info_.security_token != 0UL);
|
| DCHECK(!request_info_.cert.empty());
|
| - DCHECK(0 < request_info_.sender_ids.size() &&
|
| - request_info_.sender_ids.size() <= kMaxSenders);
|
| + DCHECK(!request_info_.sender_id.empty());
|
|
|
| DCHECK(!url_fetcher_.get());
|
| url_fetcher_.reset(net::URLFetcher::Create(
|
| @@ -139,18 +135,7 @@ void RegistrationRequest::Start() {
|
| BuildFormEncoding(kAppIdKey, request_info_.app_id, &body);
|
| BuildFormEncoding(kCertKey, request_info_.cert, &body);
|
| BuildFormEncoding(kDeviceIdKey, android_id, &body);
|
| -
|
| - std::string senders;
|
| - for (std::vector<std::string>::const_iterator iter =
|
| - request_info_.sender_ids.begin();
|
| - iter != request_info_.sender_ids.end();
|
| - ++iter) {
|
| - DCHECK(!iter->empty());
|
| - if (!senders.empty())
|
| - senders.append(",");
|
| - senders.append(*iter);
|
| - }
|
| - BuildFormEncoding(kSenderKey, senders, &body);
|
| + BuildFormEncoding(kSenderKey, request_info_.sender_id, &body);
|
|
|
| DVLOG(1) << "Performing registration for: " << request_info_.app_id;
|
| DVLOG(1) << "Registration request: " << body;
|
|
|