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

Issue 2945303005: Refactor PrinterDiscoverer and PrinterDetector to use a common interface. (Closed)

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

Description

Refactor PrinterDiscoverer and PrinterDetector to use a common interface. Take 2. The previous version of this patch broke the debug build. This has been fixed in this version. This change factors out a PrinterDetector interface and associated Observer class. The Cups USB printer detector now implements this external interface, and the PrinterDiscoverer class is re-expressed as a generic PrinterDetectorInterface implementation that combines the results of subsystem-specific printer detectors. This change also adds unit tests for the new CombiningPrinterDetector class used to provide discovery functionality. BUG=588234 Review-Url: https://codereview.chromium.org/2945303005 Cr-Commit-Position: refs/heads/master@{#481602} Committed: https://chromium.googlesource.com/chromium/src/+/066f992488dd298b4af581f56283a2f7d2ddbe6f

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+572 lines, -85 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 3 chunks +4 lines, -2 lines 0 comments Download
A chrome/browser/chromeos/printing/combining_printer_detector.h View 1 chunk +34 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/combining_printer_detector.cc View 1 chunk +153 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/combining_printer_detector_unittest.cc View 1 chunk +220 lines, -0 lines 0 comments Download
A chrome/browser/chromeos/printing/printer_detector.h View 1 chunk +63 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/printing/usb_printer_detector.h View 2 chunks +7 lines, -19 lines 0 comments Download
M chrome/browser/chromeos/printing/usb_printer_detector.cc View 3 chunks +24 lines, -11 lines 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.h View 6 chunks +13 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc View 8 chunks +54 lines, -43 lines 0 comments Download

Messages

Total messages: 20 (9 generated)
Carlson
Take 2. Sorry for the previous break. Verified that this version also builds in Debug ...
3 years, 6 months ago (2017-06-22 00:25:34 UTC) #4
stevenjb
On 2017/06/22 00:25:34, Carlson wrote: > Take 2. Sorry for the previous break. Verified that ...
3 years, 6 months ago (2017-06-22 00:28:53 UTC) #5
Carlson
On 2017/06/22 00:28:53, stevenjb wrote: > On 2017/06/22 00:25:34, Carlson wrote: > > Take 2. ...
3 years, 6 months ago (2017-06-22 00:40:16 UTC) #6
skau
On 2017/06/22 00:40:16, Carlson wrote: > On 2017/06/22 00:28:53, stevenjb wrote: > > On 2017/06/22 ...
3 years, 6 months ago (2017-06-22 01:39:57 UTC) #7
stevenjb
It only failed in the Debug build, which is much slower so we don't run ...
3 years, 6 months ago (2017-06-22 16:47:24 UTC) #10
xdai1
cups_printers_handler.h .cc lgtm
3 years, 6 months ago (2017-06-22 16:49:06 UTC) #11
Carlson
On 2017/06/22 16:49:06, xdai1 wrote: > cups_printers_handler.h .cc lgtm
3 years, 6 months ago (2017-06-22 17:44:52 UTC) #12
chromium-reviews
Sorry, stevenjb@ did you mean lgtm? I don't know what LKGM would mean in this ...
3 years, 6 months ago (2017-06-22 17:45:55 UTC) #13
stevenjb
On 2017/06/22 17:45:55, chromium-reviews wrote: > Sorry, stevenjb@ did you mean lgtm? I don't know ...
3 years, 6 months ago (2017-06-22 17:55:42 UTC) #14
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/2945303005/1
3 years, 6 months ago (2017-06-22 17:58:41 UTC) #16
commit-bot: I haz the power
3 years, 6 months ago (2017-06-22 18:04:40 UTC) #20
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://chromium.googlesource.com/chromium/src/+/066f992488dd298b4af581f56283...

Powered by Google App Engine
This is Rietveld 408576698