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

Issue 1934013002: Enable the cups backend when --enable-native-cups is specified. (Closed)

Created:
4 years, 7 months ago by skau
Modified:
4 years, 5 months ago
Reviewers:
Lei Zhang, briannorris, adlr
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@cupsFlag
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Enable the cups backend only when --enable-native-cups is specified. CUPS printers will now be selectable in the print menus. NOTE: This does not enable printing to said printers. BUG=607668 TEST=Launch chrome with --enable-native-cups flag, open print preview, change printers. See that CUPS printers are listed as available printers. Committed: https://crrev.com/8ffe7751ea81f5d0d571999eccf2e8461a552dff Cr-Commit-Position: refs/heads/master@{#402654}

Patch Set 1 #

Patch Set 2 : Add a ChromeOS printing backend enabled through a flag. #

Patch Set 3 : Cleaned #

Total comments: 8

Patch Set 4 : Select the printing backends at runtime via --enable-native-cups #

Patch Set 5 : Light cleanup #

Patch Set 6 : Unbreak other platforms #

Total comments: 8

Patch Set 7 : Move flag check #

Total comments: 8

Patch Set 8 : Select the printing backends at runtime via --enable-native-cups #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -49 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M printing/BUILD.gn View 1 2 chunks +6 lines, -10 lines 0 comments Download
M printing/backend/print_backend.h View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M printing/backend/print_backend.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -0 lines 0 comments Download
M printing/backend/print_backend_chromeos.cc View 1 2 3 4 5 6 7 2 chunks +27 lines, -1 line 0 comments Download
A printing/backend/print_backend_cups.h View 1 2 1 chunk +57 lines, -0 lines 0 comments Download
M printing/backend/print_backend_cups.cc View 1 2 3 4 5 6 4 chunks +5 lines, -38 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1934013002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1934013002/20001
4 years, 7 months ago (2016-05-26 04:31:54 UTC) #5
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/143599)
4 years, 7 months ago (2016-05-26 04:45:09 UTC) #7
skau
I've cleaned up this CL so that it retains the old behavior when use_cups is ...
4 years, 5 months ago (2016-06-28 18:18:50 UTC) #8
Lei Zhang
There's a typo in the CL description. https://codereview.chromium.org/1934013002/diff/40001/printing/DEPS File printing/DEPS (right): https://codereview.chromium.org/1934013002/diff/40001/printing/DEPS#newcode13 printing/DEPS:13: "+chrome/common", Sorry, ...
4 years, 5 months ago (2016-06-28 19:09:48 UTC) #10
skau
I've moved the flag check into the print_preview_handler and that seems to have made the ...
4 years, 5 months ago (2016-06-28 21:30:28 UTC) #12
skau
https://codereview.chromium.org/1934013002/diff/40001/printing/DEPS File printing/DEPS (right): https://codereview.chromium.org/1934013002/diff/40001/printing/DEPS#newcode13 printing/DEPS:13: "+chrome/common", On 2016/06/28 19:09:47, Lei Zhang wrote: > Sorry, ...
4 years, 5 months ago (2016-06-28 21:40:15 UTC) #13
Lei Zhang
https://codereview.chromium.org/1934013002/diff/100001/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/1934013002/diff/100001/chrome/browser/ui/webui/print_preview/print_preview_handler.cc#newcode430 chrome/browser/ui/webui/print_preview/print_preview_handler.cc:430: printing::PrintBackend::SetNativeCupsEnabled( We probably don't need to set the same ...
4 years, 5 months ago (2016-06-28 22:27:35 UTC) #14
skau
https://codereview.chromium.org/1934013002/diff/100001/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/1934013002/diff/100001/chrome/browser/ui/webui/print_preview/print_preview_handler.cc#newcode430 chrome/browser/ui/webui/print_preview/print_preview_handler.cc:430: printing::PrintBackend::SetNativeCupsEnabled( On 2016/06/28 22:27:35, Lei Zhang wrote: > We ...
4 years, 5 months ago (2016-06-28 23:58:19 UTC) #15
Lei Zhang
lgtm with some more nits https://codereview.chromium.org/1934013002/diff/120001/printing/backend/print_backend.cc File printing/backend/print_backend.cc (right): https://codereview.chromium.org/1934013002/diff/120001/printing/backend/print_backend.cc#newcode8 printing/backend/print_backend.cc:8: static bool native_cups_enabled = ...
4 years, 5 months ago (2016-06-29 00:22:31 UTC) #16
skau
https://codereview.chromium.org/1934013002/diff/120001/printing/backend/print_backend.cc File printing/backend/print_backend.cc (right): https://codereview.chromium.org/1934013002/diff/120001/printing/backend/print_backend.cc#newcode8 printing/backend/print_backend.cc:8: static bool native_cups_enabled = false; On 2016/06/29 00:22:31, Lei ...
4 years, 5 months ago (2016-06-29 00:40:17 UTC) #17
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/1934013002/40002
4 years, 5 months ago (2016-06-29 00:42:50 UTC) #20
commit-bot: I haz the power
Committed patchset #8 (id:40002)
4 years, 5 months ago (2016-06-29 02:10:48 UTC) #22
commit-bot: I haz the power
4 years, 5 months ago (2016-06-29 02:13:32 UTC) #24
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/8ffe7751ea81f5d0d571999eccf2e8461a552dff
Cr-Commit-Position: refs/heads/master@{#402654}

Powered by Google App Engine
This is Rietveld 408576698