summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/print_web_view_helper_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/print_web_view_helper_linux.cc')
-rw-r--r--chrome/renderer/print_web_view_helper_linux.cc6
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;
}