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

Unified Diff: webkit/glue/weburlloader_impl.cc

Issue 7601026: Use consistent timestamps for data: url request info. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/weburlloader_impl.cc
diff --git a/webkit/glue/weburlloader_impl.cc b/webkit/glue/weburlloader_impl.cc
index 7eaa37a938784a1818d735f3a7d1e9b7aab9c70d..102761cc3595ff4d2405340d471286afe4e99ab8 100644
--- a/webkit/glue/weburlloader_impl.cc
+++ b/webkit/glue/weburlloader_impl.cc
@@ -118,15 +118,17 @@ bool GetInfoFromDataURL(const GURL& url,
std::string charset;
if (net::DataURL::Parse(url, &mime_type, &charset, data)) {
*status = net::URLRequestStatus(net::URLRequestStatus::SUCCESS, 0);
- info->request_time = Time::Now();
- info->response_time = Time::Now();
+ // Assure same time for all time fields of data: URLs.
+ Time now = Time::Now();
+ info->load_timing.base_time = now;
+ info->request_time = now;
+ info->response_time = now;
info->headers = NULL;
info->mime_type.swap(mime_type);
info->charset.swap(charset);
info->security_info.clear();
info->content_length = -1;
info->encoded_data_length = 0;
- info->load_timing.base_time = Time::Now();
return true;
}
« 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