Index: net/url_request/url_request_http_job.cc |
diff --git a/net/url_request/url_request_http_job.cc b/net/url_request/url_request_http_job.cc |
index 2860e7e5f0bf359e63082e35f2ad5680f367b6b5..78c9da29841f7d6403a89c84c708b44c3409475c 100644 |
--- a/net/url_request/url_request_http_job.cc |
+++ b/net/url_request/url_request_http_job.cc |
@@ -566,6 +566,9 @@ void URLRequestHttpJob::SaveCookiesAndNotifyHeadersComplete(int result) { |
FetchResponseCookies(&response_cookies_); |
+ if (!GetResponseHeaders()->GetDateValue(&response_date_)) |
+ response_date_ = base::Time(); |
+ |
// Now, loop over the response cookies, and attempt to persist each. |
SaveNextCookie(); |
} |
@@ -592,6 +595,7 @@ void URLRequestHttpJob::SaveNextCookie() { |
response_cookies_.size() > 0) { |
CookieOptions options; |
options.set_include_httponly(); |
+ options.set_server_time(response_date_); |
net::CookieStore::SetCookiesCallback callback( |
base::Bind(&URLRequestHttpJob::OnCookieSaved, |