Index: net/cookies/cookie_util.h |
diff --git a/net/cookies/cookie_util.h b/net/cookies/cookie_util.h |
index 0bf1452af864015331c1491ad50f78d1652e81dc..39e202922bffa4d46d0d20deb7ad926fc6439c53 100644 |
--- a/net/cookies/cookie_util.h |
+++ b/net/cookies/cookie_util.h |
@@ -37,8 +37,13 @@ NET_EXPORT bool GetCookieDomainWithString(const GURL& url, |
// i.e. it doesn't begin with a leading '.' character. |
NET_EXPORT bool DomainIsHostOnly(const std::string& domain_string); |
-// Parses the string with the cookie time (very forgivingly). |
-NET_EXPORT base::Time ParseCookieTime(const std::string& time_string); |
+// Parses the string with the cookie expiration time (very forgivingly). |
+// Returns the "null" time on failure. |
+// |
+// If the expiration date is either too small or too large (there are |
+// platform-specific limits for allowed date ranges), then it will be clipped |
+// to the min/max time FromExploded supports rather than fail. |
+NET_EXPORT base::Time ParseCookieExpirationTime(const std::string& time_string); |
// Convenience for converting a cookie origin (domain and https pair) to a URL. |
NET_EXPORT GURL CookieOriginToURL(const std::string& domain, bool is_https); |