diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-29 00:56:45 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-29 00:56:45 +0000 |
commit | 7678b3c9201047c337157637cd7922ee3c933661 (patch) | |
tree | 96f4cfdba633e58247a6b9d8ede0e0d7f64a8668 /chrome/renderer/print_web_view_helper_linux.cc | |
parent | 7b869d1d0cb065d1956b9f9fc740fdb54385b021 (diff) | |
download | chromium_src-7678b3c9201047c337157637cd7922ee3c933661.zip chromium_src-7678b3c9201047c337157637cd7922ee3c933661.tar.gz chromium_src-7678b3c9201047c337157637cd7922ee3c933661.tar.bz2 |
Add the rest of the print preview UMAs that we'd like.
BUG=80917
TEST=NONE
Review URL: http://codereview.chromium.org/7078027
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87191 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/print_web_view_helper_linux.cc')
-rw-r--r-- | chrome/renderer/print_web_view_helper_linux.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/renderer/print_web_view_helper_linux.cc b/chrome/renderer/print_web_view_helper_linux.cc index aec3fc489..db471eb 100644 --- a/chrome/renderer/print_web_view_helper_linux.cc +++ b/chrome/renderer/print_web_view_helper_linux.cc @@ -190,8 +190,10 @@ bool PrintWebViewHelper::RenderPages(const PrintMsg_PrintPages_Params& params, metafile->FinishDocument(); if (is_preview) { - UMA_HISTOGRAM_TIMES("PrintPreview.RenderAndGeneratePDFTime", - base::TimeTicks::Now() - begin_time); + int preview_page_count = params.pages.size() ? params.pages.size() : + *page_count; + ReportPreviewGenerationTime(base::TimeTicks::Now() - begin_time, + preview_page_count); } return true; } |