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

Unified Diff: google_apis/gcm/engine/registration_request.cc

Issue 179043005: [GCM] Remove the requirement for manifest key (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove cert 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/engine/registration_request.cc
diff --git a/google_apis/gcm/engine/registration_request.cc b/google_apis/gcm/engine/registration_request.cc
index a6fd0360b5e46f74495352d32be19aa7d7e71316..4469f40586612a8d535c786efdeb3aaac6cfd52c 100644
--- a/google_apis/gcm/engine/registration_request.cc
+++ b/google_apis/gcm/engine/registration_request.cc
@@ -28,7 +28,6 @@ const char kRegistrationRequestContentType[] =
// Request constants.
const char kAppIdKey[] = "app";
-const char kCertKey[] = "cert";
const char kDeviceIdKey[] = "device";
const char kLoginHeader[] = "AidLogin";
const char kSenderKey[] = "sender";
@@ -87,12 +86,10 @@ RegistrationRequest::RequestInfo::RequestInfo(
uint64 android_id,
uint64 security_token,
const std::string& app_id,
- const std::string& cert,
const std::vector<std::string>& sender_ids)
: android_id(android_id),
security_token(security_token),
app_id(app_id),
- cert(cert),
sender_ids(sender_ids) {
}
@@ -119,7 +116,6 @@ void RegistrationRequest::Start() {
DCHECK(!callback_.is_null());
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);
@@ -137,7 +133,6 @@ void RegistrationRequest::Start() {
std::string body;
BuildFormEncoding(kAppIdKey, request_info_.app_id, &body);
- BuildFormEncoding(kCertKey, request_info_.cert, &body);
BuildFormEncoding(kDeviceIdKey, android_id, &body);
std::string senders;
« no previous file with comments | « google_apis/gcm/engine/registration_request.h ('k') | google_apis/gcm/engine/registration_request_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698