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

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

Issue 2111973002: Add support for GCM subtypes to desktop Instance ID implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@iid9push
Patch Set: Address jianli's review comments Created 4 years, 4 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/instance_id_get_token_request_handler.cc
diff --git a/google_apis/gcm/engine/instance_id_get_token_request_handler.cc b/google_apis/gcm/engine/instance_id_get_token_request_handler.cc
index 187db61df2c7fff0b5333cb997068603483eee56..3ebda2079b31c023b7d5f4ab7a87f8232ce0c22c 100644
--- a/google_apis/gcm/engine/instance_id_get_token_request_handler.cc
+++ b/google_apis/gcm/engine/instance_id_get_token_request_handler.cc
@@ -15,7 +15,6 @@ namespace {
// Request constants.
const char kAuthorizedEntityKey[] = "sender";
-const char kSubtypeKey[] = "X-subtype";
const char kGMSVersionKey[] = "gmsv";
const char kInstanceIDKey[] = "appid";
const char kScopeKey[] = "scope";
@@ -51,9 +50,6 @@ void InstanceIDGetTokenRequestHandler::BuildRequestBody(std::string* body){
BuildFormEncoding(kGMSVersionKey, base::IntToString(gcm_version_), body);
BuildFormEncoding(kInstanceIDKey, instance_id_, body);
BuildFormEncoding(kAuthorizedEntityKey, authorized_entity_, body);
- // TODO(jianli): To work around server bug. To be removed when the server fix
- // is deployed.
- BuildFormEncoding(kSubtypeKey, authorized_entity_, body);
}
void InstanceIDGetTokenRequestHandler::ReportUMAs(

Powered by Google App Engine
This is Rietveld 408576698