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

Issue 2790603003: Make CUPS USB printing play better with the settings page. This change does several things: (Closed)

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

Description

Make CUPS USB printing play better with the settings page. This change does several things: * Provides a real implementation of PrinterDiscoverer, and re-enables it. * Adds support for observers to CupsPrinterDetector, * Connects PrinterDiscoverer to CupsPrinterDetector, so PrinterDiscoverer knows about USB printers BUGS=616866,706582 BUG= CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2790603003 Cr-Commit-Position: refs/heads/master@{#463738} Committed: https://chromium.googlesource.com/chromium/src/+/e5243e7446e4bae1bdeb43f1d4c526de3bf939f5

Patch Set 1 #

Patch Set 2 : Pre-review cleanups #

Total comments: 8

Patch Set 3 : Address skau@ comments #

Total comments: 7

Patch Set 4 : Address xdai@ comments #

Total comments: 35

Patch Set 5 : Address stevenjb@ comments, revert ui changes #

Patch Set 6 : stop latching PrintersManager, add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+278 lines, -236 lines) Patch
M chrome/browser/chromeos/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/printer_detector/cups_printer_detector.cc View 1 2 3 4 7 chunks +102 lines, -38 lines 0 comments Download
M chrome/browser/chromeos/printer_detector/printer_detector.h View 1 2 3 4 3 chunks +21 lines, -0 lines 0 comments Download
D chrome/browser/chromeos/printing/fake_printer_discoverer.h View 1 2 1 chunk +0 lines, -41 lines 0 comments Download
D chrome/browser/chromeos/printing/fake_printer_discoverer.cc View 1 2 1 chunk +0 lines, -107 lines 0 comments Download
M chrome/browser/chromeos/printing/printer_discoverer.h View 1 2 3 4 1 chunk +24 lines, -29 lines 0 comments Download
A chrome/browser/chromeos/printing/printer_discoverer.cc View 1 2 3 4 5 1 chunk +119 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/printing/printers_manager.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/cups_printers_handler.cc View 1 2 3 4 3 chunks +8 lines, -17 lines 0 comments Download

Messages

Total messages: 29 (11 generated)
Carlson
Requesting: skau: all the c++ parts, owners signoff on /c/b/chromeos/printing/* xdai: c/b/resources/* changes stevenjb: c/b/chromeos/printer_detector/*, ...
3 years, 8 months ago (2017-03-30 21:40:10 UTC) #3
skau
lgtm https://codereview.chromium.org/2790603003/diff/20001/chrome/browser/chromeos/BUILD.gn File chrome/browser/chromeos/BUILD.gn (left): https://codereview.chromium.org/2790603003/diff/20001/chrome/browser/chromeos/BUILD.gn#oldcode1231 chrome/browser/chromeos/BUILD.gn:1231: "printing/fake_printer_discoverer.h", I know I told you to keep ...
3 years, 8 months ago (2017-03-31 17:50:11 UTC) #4
Carlson
https://codereview.chromium.org/2790603003/diff/20001/chrome/browser/chromeos/BUILD.gn File chrome/browser/chromeos/BUILD.gn (left): https://codereview.chromium.org/2790603003/diff/20001/chrome/browser/chromeos/BUILD.gn#oldcode1231 chrome/browser/chromeos/BUILD.gn:1231: "printing/fake_printer_discoverer.h", On 2017/03/31 17:50:11, skau wrote: > I know ...
3 years, 8 months ago (2017-03-31 18:20:07 UTC) #5
skau
https://codereview.chromium.org/2790603003/diff/20001/chrome/browser/chromeos/printing/printer_discoverer.cc File chrome/browser/chromeos/printing/printer_discoverer.cc (right): https://codereview.chromium.org/2790603003/diff/20001/chrome/browser/chromeos/printing/printer_discoverer.cc#newcode65 chrome/browser/chromeos/printing/printer_discoverer.cc:65: // This wrapper buys us weak_ptr semantics on the ...
3 years, 8 months ago (2017-03-31 21:03:20 UTC) #6
xdai1
See inline comments. https://codereview.chromium.org/2790603003/diff/40001/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js File chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js (left): https://codereview.chromium.org/2790603003/diff/40001/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js#oldcode320 chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js:320: selectedPrinter: { Could you try to ...
3 years, 8 months ago (2017-03-31 22:08:39 UTC) #7
Carlson
https://codereview.chromium.org/2790603003/diff/20001/chrome/browser/chromeos/printing/printer_discoverer.cc File chrome/browser/chromeos/printing/printer_discoverer.cc (right): https://codereview.chromium.org/2790603003/diff/20001/chrome/browser/chromeos/printing/printer_discoverer.cc#newcode65 chrome/browser/chromeos/printing/printer_discoverer.cc:65: // This wrapper buys us weak_ptr semantics on the ...
3 years, 8 months ago (2017-03-31 22:58:41 UTC) #8
xdai1
Please see my inline comments. https://codereview.chromium.org/2790603003/diff/40001/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js File chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js (left): https://codereview.chromium.org/2790603003/diff/40001/chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js#oldcode320 chrome/browser/resources/settings/printing_page/cups_add_printer_dialog.js:320: selectedPrinter: { On 2017/03/31 ...
3 years, 8 months ago (2017-03-31 23:33:52 UTC) #9
Carlson
On 2017/03/31 22:58:41, Carlson wrote: > https://codereview.chromium.org/2790603003/diff/20001/chrome/browser/chromeos/printing/printer_discoverer.cc > File chrome/browser/chromeos/printing/printer_discoverer.cc (right): > > https://codereview.chromium.org/2790603003/diff/20001/chrome/browser/chromeos/printing/printer_discoverer.cc#newcode65 > ...
3 years, 8 months ago (2017-04-01 00:11:17 UTC) #10
stevenjb
https://codereview.chromium.org/2790603003/diff/60001/chrome/browser/chromeos/printer_detector/cups_printer_detector.cc File chrome/browser/chromeos/printer_detector/cups_printer_detector.cc (right): https://codereview.chromium.org/2790603003/diff/60001/chrome/browser/chromeos/printer_detector/cups_printer_detector.cc#newcode107 chrome/browser/chromeos/printer_detector/cups_printer_detector.cc:107: return ret; local not needed. Also, we could avoid ...
3 years, 8 months ago (2017-04-10 19:49:55 UTC) #11
stevenjb
Also, can we move the UI changes to a separate CL? They do not appear ...
3 years, 8 months ago (2017-04-10 19:50:47 UTC) #12
Carlson
Thanks for the review. Removed the UI changes from this cl. Also I could use ...
3 years, 8 months ago (2017-04-10 22:16:42 UTC) #13
stevenjb
So the only blocker for me is storing printers_manager_. https://codereview.chromium.org/2790603003/diff/60001/chrome/browser/chromeos/printer_detector/cups_printer_detector.cc File chrome/browser/chromeos/printer_detector/cups_printer_detector.cc (right): https://codereview.chromium.org/2790603003/diff/60001/chrome/browser/chromeos/printer_detector/cups_printer_detector.cc#newcode150 chrome/browser/chromeos/printer_detector/cups_printer_detector.cc:150: ...
3 years, 8 months ago (2017-04-11 16:27:42 UTC) #15
skau
https://codereview.chromium.org/2790603003/diff/60001/chrome/browser/chromeos/printing/printer_discoverer.cc File chrome/browser/chromeos/printing/printer_discoverer.cc (right): https://codereview.chromium.org/2790603003/diff/60001/chrome/browser/chromeos/printing/printer_discoverer.cc#newcode50 chrome/browser/chromeos/printing/printer_discoverer.cc:50: GetAvailablePrinters())); On 2017/04/11 16:27:42, stevenjb wrote: > On 2017/04/10 ...
3 years, 8 months ago (2017-04-11 17:12:49 UTC) #16
stevenjb
https://codereview.chromium.org/2790603003/diff/60001/chrome/browser/chromeos/printing/printer_discoverer.cc File chrome/browser/chromeos/printing/printer_discoverer.cc (right): https://codereview.chromium.org/2790603003/diff/60001/chrome/browser/chromeos/printing/printer_discoverer.cc#newcode50 chrome/browser/chromeos/printing/printer_discoverer.cc:50: GetAvailablePrinters())); On 2017/04/11 17:12:49, skau wrote: > On 2017/04/11 ...
3 years, 8 months ago (2017-04-11 17:19:15 UTC) #17
Carlson
Wall o' text reply, sorry. :) PTAL? https://codereview.chromium.org/2790603003/diff/60001/chrome/browser/chromeos/printing/printer_discoverer.cc File chrome/browser/chromeos/printing/printer_discoverer.cc (right): https://codereview.chromium.org/2790603003/diff/60001/chrome/browser/chromeos/printing/printer_discoverer.cc#newcode30 chrome/browser/chromeos/printing/printer_discoverer.cc:30: PrintersManagerFactory::GetForBrowserContext(profile)), On ...
3 years, 8 months ago (2017-04-11 17:47:45 UTC) #18
stevenjb
owner lgtm
3 years, 8 months ago (2017-04-11 17:56:23 UTC) #19
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/2790603003/100001
3 years, 8 months ago (2017-04-11 19:47:51 UTC) #26
commit-bot: I haz the power
3 years, 8 months ago (2017-04-11 19:59:58 UTC) #29
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/e5243e7446e4bae1bdeb43f1d4c5...

Powered by Google App Engine
This is Rietveld 408576698