DescriptionRefactor 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 #Messages
Total messages: 20 (9 generated)
|