diff options
author | mad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-13 16:36:04 +0000 |
---|---|---|
committer | mad@chromium.org <mad@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-08-13 16:36:04 +0000 |
commit | e9c7c3779a307a98ae7896d4c6d1d700f1ba8070 (patch) | |
tree | 2483c502be122699ea29d9f9dec60df609d9b61f /printing | |
parent | 540e3e9c67b612eea161edbd4b481345b2ed848f (diff) | |
download | chromium_src-e9c7c3779a307a98ae7896d4c6d1d700f1ba8070.zip chromium_src-e9c7c3779a307a98ae7896d4c6d1d700f1ba8070.tar.gz chromium_src-e9c7c3779a307a98ae7896d4c6d1d700f1ba8070.tar.bz2 |
Adding basic Metro Print Metrics.
BUG=136041
TEST=Make sure metro print actions are logged as histograms.
Review URL: https://chromiumcodereview.appspot.com/10831272
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@151285 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing')
-rw-r--r-- | printing/printing_context_win.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/printing/printing_context_win.cc b/printing/printing_context_win.cc index 99f92cb..522da3d 100644 --- a/printing/printing_context_win.cc +++ b/printing/printing_context_win.cc @@ -11,6 +11,7 @@ #include "base/i18n/file_util_icu.h" #include "base/i18n/time_formatting.h" #include "base/message_loop.h" +#include "base/metrics/histogram.h" #include "base/time.h" #include "base/utf_string_conversions.h" #include "base/values.h" @@ -230,8 +231,12 @@ void PrintingContextWin::AskUserForSettings( MetroShowPrintUI metro_show_print_ui = reinterpret_cast<MetroShowPrintUI>( ::GetProcAddress(metro_module, "MetroShowPrintUI")); - if (metro_show_print_ui) + if (metro_show_print_ui) { + // TODO(mad): Remove this once we can send user metrics from the metro + // driver. crbug.com/142330 + UMA_HISTOGRAM_ENUMERATION("Metro.Print", 1, 2); metro_show_print_ui(); + } } return callback.Run(CANCEL); } |