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

Issue 2457933004: Register and select printer on click. (Closed)

Created:
4 years, 1 month ago by skau
Modified:
4 years, 1 month ago
Reviewers:
Lei Zhang
CC:
chromium-reviews, oshima+watch_chromium.org, davemoore+watch_chromium.org, xdai1, Carlson
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Register and select printer on click. Use the printer pref object shown in the print preview dialog to select the appropriate printer from the backend. If said printer is not registered with the backend, register it first. Additional integration with the PPD Provider and launching settings will be required in the future. NOTE: This disables printing for printers without PPDs for now. CL 3 of 3 to enable printer selection on Chrome OS BUG=637272 TEST=CrOS: Setup printer in preferences. Log out. Log in. Print something. TEST=Linux: Verify behavior has not changed when printing. Committed: https://crrev.com/32fefea307ec051458caa9a160c863b2a5255685 Cr-Commit-Position: refs/heads/master@{#430139}

Patch Set 1 #

Patch Set 2 : user ppds only #

Patch Set 3 : lint #

Total comments: 26

Patch Set 4 : rebase #

Patch Set 5 : address comments from thestig@ #

Patch Set 6 : revert HandlePrinterSelected #

Patch Set 7 : rebase #

Total comments: 22

Patch Set 8 : rebase #

Patch Set 9 : address comments #

Total comments: 4

Patch Set 10 : rebase #

Patch Set 11 : rebase #

Patch Set 12 : address comments #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+316 lines, -86 lines) Patch
M chrome/browser/chromeos/printing/printer_pref_manager.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/printing/printer_pref_manager.cc View 1 2 3 4 5 6 2 chunks +10 lines, -2 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 2 3 4 5 6 7 8 9 10 7 chunks +22 lines, -83 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/printer_backend_proxy.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/printer_backend_proxy.cc View 1 2 3 4 5 6 7 8 9 3 chunks +35 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +96 lines, -1 line 0 comments Download
A chrome/browser/ui/webui/print_preview/printer_capabilities.h View 1 2 3 4 5 6 7 8 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/browser/ui/webui/print_preview/printer_capabilities.cc View 1 2 3 4 5 6 7 8 1 chunk +102 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (20 generated)
skau
thestig@: Please take a look at the new structure. This CL could change slightly based ...
4 years, 1 month ago (2016-11-02 21:57:06 UTC) #6
Lei Zhang
https://codereview.chromium.org/2457933004/diff/40001/chrome/browser/chromeos/printing/printer_pref_manager.cc File chrome/browser/chromeos/printing/printer_pref_manager.cc (right): https://codereview.chromium.org/2457933004/diff/40001/chrome/browser/chromeos/printing/printer_pref_manager.cc#newcode102 chrome/browser/chromeos/printing/printer_pref_manager.cc:102: if (!values) So either line 83 needs this check, ...
4 years, 1 month ago (2016-11-02 23:09:22 UTC) #7
skau
Thanks for the review. Comments addressed. PTAL. https://codereview.chromium.org/2457933004/diff/40001/chrome/browser/chromeos/printing/printer_pref_manager.cc File chrome/browser/chromeos/printing/printer_pref_manager.cc (right): https://codereview.chromium.org/2457933004/diff/40001/chrome/browser/chromeos/printing/printer_pref_manager.cc#newcode102 chrome/browser/chromeos/printing/printer_pref_manager.cc:102: if (!values) ...
4 years, 1 month ago (2016-11-03 22:38:08 UTC) #8
Lei Zhang
https://codereview.chromium.org/2457933004/diff/40001/chrome/browser/ui/webui/print_preview/print_preview_handler.cc File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/2457933004/diff/40001/chrome/browser/ui/webui/print_preview/print_preview_handler.cc#newcode549 chrome/browser/ui/webui/print_preview/print_preview_handler.cc:549: base::Bind(&PrintPreviewHandler::HandlePrinterSelected, On 2016/11/03 22:38:08, skau wrote: > On 2016/11/02 ...
4 years, 1 month ago (2016-11-03 23:41:46 UTC) #13
skau
Comments addressed. PTAL. https://codereview.chromium.org/2457933004/diff/40001/chrome/browser/ui/webui/print_preview/print_preview_handler.cc File chrome/browser/ui/webui/print_preview/print_preview_handler.cc (right): https://codereview.chromium.org/2457933004/diff/40001/chrome/browser/ui/webui/print_preview/print_preview_handler.cc#newcode549 chrome/browser/ui/webui/print_preview/print_preview_handler.cc:549: base::Bind(&PrintPreviewHandler::HandlePrinterSelected, On 2016/11/03 23:41:46, Lei Zhang ...
4 years, 1 month ago (2016-11-04 19:28:59 UTC) #15
Lei Zhang
lgtm https://codereview.chromium.org/2457933004/diff/160001/chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc File chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc (right): https://codereview.chromium.org/2457933004/diff/160001/chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc#newcode30 chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc:30: enum SetupResult { UNKNOWN, SUCCESS, PPD_NOT_FOUND, FAILURE }; ...
4 years, 1 month ago (2016-11-04 21:57:07 UTC) #19
skau
Thanks for all the reviews! https://codereview.chromium.org/2457933004/diff/160001/chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc File chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc (right): https://codereview.chromium.org/2457933004/diff/160001/chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc#newcode30 chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc:30: enum SetupResult { UNKNOWN, ...
4 years, 1 month ago (2016-11-04 22:37:40 UTC) #20
commit-bot: I haz the power
This CL has an open dependency (Issue 2459943002 Patch 120001). Please resolve the dependency and ...
4 years, 1 month ago (2016-11-04 22:38:43 UTC) #24
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/2457933004/240001
4 years, 1 month ago (2016-11-05 01:36:00 UTC) #27
commit-bot: I haz the power
Committed patchset #13 (id:240001)
4 years, 1 month ago (2016-11-05 03:24:11 UTC) #29
commit-bot: I haz the power
4 years, 1 month ago (2016-11-05 03:27:07 UTC) #31
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/32fefea307ec051458caa9a160c863b2a5255685
Cr-Commit-Position: refs/heads/master@{#430139}

Powered by Google App Engine
This is Rietveld 408576698