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

Unified Diff: extensions/browser/api/web_request/web_request_api_helpers.cc

Issue 2358343004: When parsing cookie expiration times, clip out of range dates rather
Patch Set: Created 4 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
« no previous file with comments | « no previous file | net/cookies/canonical_cookie.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/api/web_request/web_request_api_helpers.cc
diff --git a/extensions/browser/api/web_request/web_request_api_helpers.cc b/extensions/browser/api/web_request/web_request_api_helpers.cc
index 906d13c732869f0a184c41dfc654e2f133d611d1..30ba4e35bf201a5bfd5698bccdf2979ede86cc0f 100644
--- a/extensions/browser/api/web_request/web_request_api_helpers.cc
+++ b/extensions/browser/api/web_request/web_request_api_helpers.cc
@@ -112,8 +112,10 @@ bool ParseCookieLifetime(net::ParsedCookie* cookie,
}
Time parsed_expiry_time;
- if (cookie->HasExpires())
- parsed_expiry_time = net::cookie_util::ParseCookieTime(cookie->Expires());
+ if (cookie->HasExpires()) {
+ parsed_expiry_time =
+ net::cookie_util::ParseCookieExpirationTime(cookie->Expires());
+ }
if (!parsed_expiry_time.is_null()) {
*seconds_till_expiry =
« no previous file with comments | « no previous file | net/cookies/canonical_cookie.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698