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

Unified Diff: components/gcm_driver/gcm_client.cc

Issue 589663004: Setting max TTL for upstream GCM messages to 1 day to match server side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing CL feedback Created 6 years, 3 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_client.cc
diff --git a/components/gcm_driver/gcm_client.cc b/components/gcm_driver/gcm_client.cc
index a0282802b32730351194bff76af8580e57b40eb1..76dc0f67334bf0ee5ed82ac5dd40a339a8aeea0c 100644
--- a/components/gcm_driver/gcm_client.cc
+++ b/components/gcm_driver/gcm_client.cc
@@ -14,6 +14,9 @@ GCMClient::ChromeBuildInfo::ChromeBuildInfo()
GCMClient::ChromeBuildInfo::~ChromeBuildInfo() {
}
+// static
+const int GCMClient::OutgoingMessage::kMaximumTTL = 24 * 60 * 60; // 1 day.
+
GCMClient::OutgoingMessage::OutgoingMessage()
: time_to_live(kMaximumTTL) {
}

Powered by Google App Engine
This is Rietveld 408576698