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

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

Issue 2903113002: Track printer protocol usage for CUPS printers. (Closed)
Patch Set: rebase Created 3 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 | chromeos/printing/printer_configuration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc
diff --git a/chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc b/chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc
index a26a8bbc8891c4cd1e3d8b6760c6c7b3800598de..94cca8f5b3947f3f2cdf4ced31b151277527cccd 100644
--- a/chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc
+++ b/chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc
@@ -11,6 +11,7 @@
#include "base/command_line.h"
#include "base/logging.h"
#include "base/memory/ptr_util.h"
+#include "base/metrics/histogram_macros.h"
#include "base/task_scheduler/post_task.h"
#include "base/values.h"
#include "chrome/browser/chromeos/printing/cups_print_job_manager.h"
@@ -123,6 +124,11 @@ class PrinterBackendProxyChromeos : public PrinterBackendProxy {
return;
}
+ // Log printer configuration for selected printer.
+ UMA_HISTOGRAM_ENUMERATION("Printing.CUPS.ProtocolUsed",
+ printer->GetProtocol(),
+ chromeos::Printer::kProtocolMax);
+
if (prefs_->IsConfigurationCurrent(*printer)) {
// Skip setup if the printer is already installed.
HandlePrinterSetup(std::move(printer), cb, chromeos::SUCCESS);
« no previous file with comments | « no previous file | chromeos/printing/printer_configuration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698