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

Unified Diff: net/url_request/url_request.cc

Issue 7602023: Use a monotonic clock (TimeTicks) to report network times to WebCore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync & Merge Created 9 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 | « net/url_request/url_request.h ('k') | webkit/glue/resource_loader_bridge.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index af405d7246d3d00a7e81d78ab892776bd6930c2b..040875794d2b3f75dd87b2e6df2b74571a41fef8 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -152,7 +152,8 @@ URLRequest::URLRequest(const GURL& url, Delegate* delegate)
ALLOW_THIS_IN_INITIALIZER_LIST(before_request_callback_(
base::Bind(&URLRequest::BeforeRequestComplete,
base::Unretained(this)))),
- has_notified_completion_(false) {
+ has_notified_completion_(false),
+ creation_time_(base::TimeTicks::Now()) {
SIMPLE_STATS_COUNTER("URLRequestCount");
// Sanity check out environment.
« no previous file with comments | « net/url_request/url_request.h ('k') | webkit/glue/resource_loader_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698