diff options
author | tburkard@chromium.org <tburkard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-22 00:21:09 +0000 |
---|---|---|
committer | tburkard@chromium.org <tburkard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-22 00:21:09 +0000 |
commit | 4627d05776eae80bd90a3ac27dbbae33ba18c3fb (patch) | |
tree | 9ed7d6563590360f5446759fe0ae709c535edbb1 /chrome/browser/net | |
parent | 4563338a9b0e294feb3ea286fa7d04c17a48b4d8 (diff) | |
download | chromium_src-4627d05776eae80bd90a3ac27dbbae33ba18c3fb.zip chromium_src-4627d05776eae80bd90a3ac27dbbae33ba18c3fb.tar.gz chromium_src-4627d05776eae80bd90a3ac27dbbae33ba18c3fb.tar.bz2 |
Fix bug in load time stats.
R=mmenke@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10870005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@152689 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net')
-rw-r--r-- | chrome/browser/net/load_time_stats.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/net/load_time_stats.cc b/chrome/browser/net/load_time_stats.cc index acb61f9..f17cd85 100644 --- a/chrome/browser/net/load_time_stats.cc +++ b/chrome/browser/net/load_time_stats.cc @@ -179,6 +179,7 @@ class LoadTimeStats::TabLoadStats { bool spinner_started() { return spinner_started_; } void set_spinner_started(bool value) { spinner_started_ = value; } base::TimeTicks load_start_time() { return load_start_time_; } + void set_load_start_time(base::TimeTicks time) { load_start_time_ = time; } int next_timer_index() { return next_timer_index_; } void set_next_timer_index(int index) { next_timer_index_ = index; } base::Timer& timer() { return timer_; } @@ -352,6 +353,7 @@ void LoadTimeStats::OnTabEvent(std::pair<int, int> render_view_id, TabLoadStats* stats = GetTabLoadStats(render_view_id); if (event == SPINNER_START) { stats->set_spinner_started(true); + stats->set_load_start_time(base::TimeTicks::Now()); for (int status = REQUEST_STATUS_CACHE_WAIT; status <= REQUEST_STATUS_ACTIVE; status++) { stats->per_status_stats()[status].ResetTimes(); |