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

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: Use strong typing Created 9 years, 1 month 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
Index: net/url_request/url_request.cc
diff --git a/net/url_request/url_request.cc b/net/url_request/url_request.cc
index 9fcae428edfa1fad4abcd78198023a99b5b545be..80dfa438fe7faa5be60cf2de400f150dbab19cb9 100644
--- a/net/url_request/url_request.cc
+++ b/net/url_request/url_request.cc
@@ -150,7 +150,8 @@ URLRequest::URLRequest(const GURL& url, Delegate* delegate)
blocked_on_delegate_(false),
ALLOW_THIS_IN_INITIALIZER_LIST(
before_request_callback_(this, &URLRequest::BeforeRequestComplete)),
- has_notified_completion_(false) {
+ has_notified_completion_(false),
+ start_time_(base::TimeTicks::Now()) {
SIMPLE_STATS_COUNTER("URLRequestCount");
// Sanity check out environment.

Powered by Google App Engine
This is Rietveld 408576698