Commit 6c929251 authored by Jialiu Lin's avatar Jialiu Lin Committed by Commit Bot

Fix PPAPIDownloadRequest.RequestDuration metric

PPAPIDownloadRequest.RequestDuration is always zero. This is because
UMA_HISTOGRAM_TIMES macro cannot handle negative number. This Cl fixes
this issue.

Bug: 633341
Change-Id: I8dd1200ed7f28e746469b4d82ef0e927a5080a88
Reviewed-on: https://chromium-review.googlesource.com/777887
Commit-Queue: Jialiu Lin <jialiul@chromium.org>
Commit-Queue: Nathan Parker <nparker@chromium.org>
Reviewed-by: default avatarNathan Parker <nparker@chromium.org>
Cr-Commit-Position: refs/heads/master@{#517657}
parent eac8592c
......@@ -287,7 +287,7 @@ void PPAPIDownloadRequest::Finish(RequestOutcome reason,
UMA_HISTOGRAM_SPARSE_SLOWLY("SBClientDownload.PPAPIDownloadRequest.Result",
static_cast<int>(response));
UMA_HISTOGRAM_TIMES("SBClientDownload.PPAPIDownloadRequest.RequestDuration",
start_time_ - base::TimeTicks::Now());
base::TimeTicks::Now() - start_time_);
if (!callback_.is_null())
base::ResetAndReturn(&callback_).Run(response);
fetcher_.reset();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment