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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_handler.cc

Issue 938193003: Add some metrics for printing with extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months 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
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview/print_preview_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
index 51b36bb40a3645c53958b8a021de67726cb6fb42..e465e03e7ff419aca129f7ffbebdab33252d3f00 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -107,6 +107,7 @@ enum UserActionBuckets {
INITIATOR_CLOSED,
PRINT_WITH_CLOUD_PRINT,
PRINT_WITH_PRIVET,
+ PRINT_WITH_EXTENSION,
USERACTION_BUCKET_BOUNDARY
};
@@ -884,7 +885,9 @@ void PrintPreviewHandler::HandlePrint(const base::ListValue* args) {
#endif
if (print_with_extension) {
- // TODO(tbarzic): Record UMA stats.
+ UMA_HISTOGRAM_COUNTS("PrintPreview.PageCount.PrintWithExtension",
+ page_count);
Ilya Sherman 2015/02/21 00:26:39 I bet that UMA_HISTOGRAM_COUNTS_100 or _10000 woul
+ ReportUserActionHistogram(PRINT_WITH_EXTENSION);
std::string destination_id;
std::string print_ticket;
« no previous file with comments | « no previous file | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698