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

Unified Diff: net/http/http_server_properties.cc

Issue 1514133002: Show alternative service expiration in net-internals. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/http/http_server_properties.cc
diff --git a/net/http/http_server_properties.cc b/net/http/http_server_properties.cc
index 408ced8501b4d261d4b09fc83a223a8a0e821a6e..1a4291b728754a731a3a051c57077310955e62c0 100644
--- a/net/http/http_server_properties.cc
+++ b/net/http/http_server_properties.cc
@@ -103,8 +103,13 @@ std::string AlternativeService::ToString() const {
}
std::string AlternativeServiceInfo::ToString() const {
- return base::StringPrintf("%s, p=%f", alternative_service.ToString().c_str(),
- probability);
+ base::Time::Exploded exploded;
+ expiration.LocalExplode(&exploded);
+ return base::StringPrintf("%s, p=%f, expires %04d-%02d-%02d %02d:%02d:%02d",
+ alternative_service.ToString().c_str(), probability,
+ exploded.year, exploded.month,
+ exploded.day_of_month, exploded.hour,
+ exploded.minute, exploded.second);
}
// static
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698