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

Unified Diff: chrome/browser/ui/webui/print_preview_handler.h

Issue 7016039: PrintPreview: Added new histograms for print preview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated the CL and fixed a style. Created 9 years, 7 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 | chrome/browser/ui/webui/print_preview_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview_handler.h
diff --git a/chrome/browser/ui/webui/print_preview_handler.h b/chrome/browser/ui/webui/print_preview_handler.h
index 6f4ac1dc082e3ccbe83ad1ac492513f14eba6282..f5f2a6a605dcd38650d55b8fcfa2ad39e6fc4e3a 100644
--- a/chrome/browser/ui/webui/print_preview_handler.h
+++ b/chrome/browser/ui/webui/print_preview_handler.h
@@ -85,6 +85,9 @@ class PrintPreviewHandler : public WebUIMessageHandler,
// Helper function to activate the initiator tab and close the preview tab.
void ActivateInitiatorTabAndClosePreviewTab();
+ // Adds all the recorded stats taken so far to histogram counts.
+ void ReportStats();
+
// Pointer to current print system.
scoped_refptr<printing::PrintBackend> print_backend_;
@@ -93,6 +96,19 @@ class PrintPreviewHandler : public WebUIMessageHandler,
static FilePath* last_saved_path_;
+ // A count of how many requests received to regenerate preview data.
+ // Initialized to 0 then incremented and emitted to a histogram.
+ int regenerate_preview_request_count_;
+
+ // A count of how many requests received to show manage printers dialog.
+ int manage_printers_dialog_request_count_;
+
+ // A count of how many times print preview failed.
+ int print_preview_failed_count_;
+
+ // Whether we have already logged the number of printers this session.
+ bool has_logged_printers_count_;
+
DISALLOW_COPY_AND_ASSIGN(PrintPreviewHandler);
};
« no previous file with comments | « no previous file | chrome/browser/ui/webui/print_preview_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698