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

Issue 2904243003: Add Printing.CUPS.PrintersDiscovered to our metrics. (Closed)

Created:
3 years, 7 months ago by skau
Modified:
3 years, 6 months ago
Reviewers:
Carlson, rkaplow, dpapad
CC:
asvitkine+watch_chromium.org, chromium-reviews, davemoore+watch_chromium.org, dbeam+watch-settings_chromium.org, michaelpg+watch-md-settings_chromium.org, oshima+watch_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add Printing.CUPS.PrintersDiscovered to our metrics. In order to understand how many printers users are seeing in the discovered printers dialog, track it using UMA. The metric is recorded when the discoverer declares scanning to be complete. BUG=726819 Review-Url: https://codereview.chromium.org/2904243003 Cr-Commit-Position: refs/heads/master@{#475649} Committed: https://chromium.googlesource.com/chromium/src/+/fc8c7f3440cecb52667340276ea06100e303d4df

Patch Set 1 #

Patch Set 2 : small #

Total comments: 2

Patch Set 3 : generalized comment #

Total comments: 4

Patch Set 4 : punt #

Total comments: 2

Patch Set 5 : change units #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -4 lines) Patch
M chrome/browser/chromeos/printing/printer_discoverer.h View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/printing/printer_discoverer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (5 generated)
skau
justincarlson@: everything rkaplow@: metrics dpapad@: settings
3 years, 7 months ago (2017-05-26 20:04:57 UTC) #2
Carlson
lgtm https://codereview.chromium.org/2904243003/diff/20001/chrome/browser/chromeos/printing/printer_discoverer.h File chrome/browser/chromeos/printing/printer_discoverer.h (right): https://codereview.chromium.org/2904243003/diff/20001/chrome/browser/chromeos/printing/printer_discoverer.h#newcode30 chrome/browser/chromeos/printing/printer_discoverer.h:30: // the initial scan has been completed. Observers ...
3 years, 7 months ago (2017-05-26 20:10:20 UTC) #3
skau
Updated comment. https://codereview.chromium.org/2904243003/diff/20001/chrome/browser/chromeos/printing/printer_discoverer.h File chrome/browser/chromeos/printing/printer_discoverer.h (right): https://codereview.chromium.org/2904243003/diff/20001/chrome/browser/chromeos/printing/printer_discoverer.h#newcode30 chrome/browser/chromeos/printing/printer_discoverer.h:30: // the initial scan has been completed. ...
3 years, 7 months ago (2017-05-26 20:23:52 UTC) #4
dpapad
https://codereview.chromium.org/2904243003/diff/40001/chrome/browser/chromeos/printing/printer_discoverer.cc File chrome/browser/chromeos/printing/printer_discoverer.cc (right): https://codereview.chromium.org/2904243003/diff/40001/chrome/browser/chromeos/printing/printer_discoverer.cc#newcode63 chrome/browser/chromeos/printing/printer_discoverer.cc:63: observer.OnPrintersFound(true /*scan_done*/, all_printers); When is OnPrintersFound called with |false|? ...
3 years, 7 months ago (2017-05-26 21:02:03 UTC) #5
Carlson
On 2017/05/26 21:02:03, dpapad wrote: > https://codereview.chromium.org/2904243003/diff/40001/chrome/browser/chromeos/printing/printer_discoverer.cc > File chrome/browser/chromeos/printing/printer_discoverer.cc (right): > > https://codereview.chromium.org/2904243003/diff/40001/chrome/browser/chromeos/printing/printer_discoverer.cc#newcode63 > ...
3 years, 7 months ago (2017-05-26 21:10:14 UTC) #6
skau
I have an answer to the comments which is very similar to justin's. https://codereview.chromium.org/2904243003/diff/40001/chrome/browser/chromeos/printing/printer_discoverer.cc File ...
3 years, 7 months ago (2017-05-26 21:20:10 UTC) #7
dpapad
> In the existing implementation, the only thing we have us USB printers, which don't ...
3 years, 7 months ago (2017-05-26 21:34:47 UTC) #8
skau
It looks like DiscoveryDone was run twice. I'll punt the interface change for now. Network ...
3 years, 7 months ago (2017-05-26 22:21:42 UTC) #9
rkaplow
lgtm histogram lg https://codereview.chromium.org/2904243003/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2904243003/diff/60001/tools/metrics/histograms/histograms.xml#newcode57072 tools/metrics/histograms/histograms.xml:57072: +<histogram name="Printing.CUPS.PrintersDiscovered" units="count"> I'd make unit ...
3 years, 6 months ago (2017-05-29 19:15:39 UTC) #10
skau
Thanks https://codereview.chromium.org/2904243003/diff/60001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/2904243003/diff/60001/tools/metrics/histograms/histograms.xml#newcode57072 tools/metrics/histograms/histograms.xml:57072: +<histogram name="Printing.CUPS.PrintersDiscovered" units="count"> On 2017/05/29 19:15:39, rkaplow wrote: ...
3 years, 6 months ago (2017-05-30 16:02:35 UTC) #11
dpapad
LGTM
3 years, 6 months ago (2017-05-30 17:56:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2904243003/80001
3 years, 6 months ago (2017-05-30 18:17:30 UTC) #15
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 20:16:34 UTC) #18
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/fc8c7f3440cecb52667340276ea0...

Powered by Google App Engine
This is Rietveld 408576698