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

Issue 2618313004: [CUPS] Implement the enterprise icon for printers in Print Preview Dialog. (Closed)

Created:
3 years, 11 months ago by xdai1
Modified:
3 years, 11 months ago
Reviewers:
skau, dpapad
CC:
arv+watch_chromium.org, chromium-reviews, davemoore+watch_chromium.org, oshima+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CUPS] Implement the enterprise icon for printers in Print Preview Dialog. BUG=669293 TEST=Define the enterpise printers policy in DMServer and open Print Preview dialog (Ctrl+P), test that the enterprise printer shows up with the correct icon. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2618313004 Cr-Commit-Position: refs/heads/master@{#444906} Committed: https://chromium.googlesource.com/chromium/src/+/b4ceb8d03a240ef6399b09711eea8518c838d141

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add the missing image. #

Total comments: 3

Patch Set 3 : Address skau@'s comments. #

Total comments: 2

Patch Set 4 : Update the tests. #

Patch Set 5 : Address dbeam@'s comment. Rebase #

Total comments: 9

Patch Set 6 : Address skau@'s comment. #

Total comments: 2

Patch Set 7 : Address skau@'s comment. #

Total comments: 2

Patch Set 8 : Address dpapad@'s comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -3 lines) Patch
M chrome/browser/browser_resources.grd View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/printing/printer_pref_manager_unittest.cc View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/data/destination.js View 1 2 3 4 5 6 5 chunks +22 lines, -2 lines 0 comments Download
M chrome/browser/resources/print_preview/data/destination_store.js View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/resources/print_preview/data/local_parsers.js View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_handler.cc View 1 2 3 4 5 6 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/print_preview_ui.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/print_preview/printer_capabilities.cc View 1 2 3 4 5 6 2 chunks +5 lines, -0 lines 0 comments Download
M chromeos/printing/printer_translator.cc View 1 2 2 chunks +2 lines, -0 lines 0 comments Download
M printing/backend/print_backend_consts.h View 1 chunk +1 line, -0 lines 0 comments Download
M printing/backend/print_backend_consts.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 55 (30 generated)
xdai1
skau@, could you help take a look at this CL to see if this approach ...
3 years, 11 months ago (2017-01-10 19:17:42 UTC) #3
skau
https://codereview.chromium.org/2618313004/diff/20001/chrome/browser/chromeos/printing/printer_pref_manager.cc File chrome/browser/chromeos/printing/printer_pref_manager.cc (right): https://codereview.chromium.org/2618313004/diff/20001/chrome/browser/chromeos/printing/printer_pref_manager.cc#newcode144 chrome/browser/chromeos/printing/printer_pref_manager.cc:144: return std::find(recommended_printer_ids_.begin(), Use base::ContainsValue(), it's more straightforward. https://codereview.chromium.org/2618313004/diff/20001/chrome/browser/chromeos/printing/printer_pref_manager.h File ...
3 years, 11 months ago (2017-01-10 19:55:53 UTC) #6
xdai1
skau@, I've addressed your comments. Please take another look, thanks for the review. https://codereview.chromium.org/2618313004/diff/20001/chrome/browser/chromeos/printing/printer_pref_manager.h File ...
3 years, 11 months ago (2017-01-10 21:45:28 UTC) #13
skau
lgtm https://codereview.chromium.org/2618313004/diff/100001/chromeos/printing/printer_translator.cc File chromeos/printing/printer_translator.cc (right): https://codereview.chromium.org/2618313004/diff/100001/chromeos/printing/printer_translator.cc#newcode145 chromeos/printing/printer_translator.cc:145: printer->set_source(Printer::SRC_POLICY); Can you update the unittest to check ...
3 years, 11 months ago (2017-01-10 22:10:39 UTC) #15
xdai1
dpapad@, could you help do owner review for this CL please? Thanks! skau@, I've addressed ...
3 years, 11 months ago (2017-01-10 23:32:43 UTC) #19
dpapad
+dbeam for enterprise_printer.png. This icon is identical to the enterprise-controlled icon used in MD Settings. ...
3 years, 11 months ago (2017-01-11 22:09:28 UTC) #24
Dan Beam
On 2017/01/11 22:09:28, dpapad wrote: > +dbeam for enterprise_printer.png. This icon is identical to the ...
3 years, 11 months ago (2017-01-11 22:36:00 UTC) #25
xdai1
On 2017/01/11 22:36:00, Dan Beam wrote: > On 2017/01/11 22:09:28, dpapad wrote: > > +dbeam ...
3 years, 11 months ago (2017-01-12 22:24:33 UTC) #26
skau
dbeam@ I had not checked the UI at different scale factors. But it looks like ...
3 years, 11 months ago (2017-01-12 23:26:26 UTC) #27
xdai1
dbeam@, dpapad@, kingly ping?
3 years, 11 months ago (2017-01-13 23:09:33 UTC) #28
Dan Beam
On 2017/01/13 23:09:33, xdai1 wrote: > dbeam@, dpapad@, kingly ping? https://bugs.chromium.org/p/chromium/issues/detail?id=669293#c4
3 years, 11 months ago (2017-01-14 00:22:41 UTC) #29
xdai1
On 2017/01/14 00:22:41, Dan Beam wrote: > On 2017/01/13 23:09:33, xdai1 wrote: > > dbeam@, ...
3 years, 11 months ago (2017-01-18 00:02:17 UTC) #30
dpapad
https://codereview.chromium.org/2618313004/diff/140001/chrome/browser/browser_resources.grd File chrome/browser/browser_resources.grd (right): https://codereview.chromium.org/2618313004/diff/140001/chrome/browser/browser_resources.grd#newcode407 chrome/browser/browser_resources.grd:407: file="../../ui/webui/resources/images/business.svg" type="BINDATA" /> I don't see this file being ...
3 years, 11 months ago (2017-01-18 02:56:04 UTC) #35
xdai1
dpapad@, I've addressed your comments. Please take another look, thanks for your review. https://codereview.chromium.org/2618313004/diff/140001/chrome/browser/browser_resources.grd File ...
3 years, 11 months ago (2017-01-18 18:45:42 UTC) #36
skau
https://codereview.chromium.org/2618313004/diff/140001/chrome/browser/resources/print_preview/data/destination.js File chrome/browser/resources/print_preview/data/destination.js (right): https://codereview.chromium.org/2618313004/diff/140001/chrome/browser/resources/print_preview/data/destination.js#newcode581 chrome/browser/resources/print_preview/data/destination.js:581: return arrayContains(this.tags_, Destination.EnterprisePrinterTag_); On 2017/01/18 18:45:42, xdai1 wrote: > ...
3 years, 11 months ago (2017-01-18 20:59:07 UTC) #37
dpapad
https://codereview.chromium.org/2618313004/diff/140001/chrome/browser/resources/print_preview/data/destination.js File chrome/browser/resources/print_preview/data/destination.js (right): https://codereview.chromium.org/2618313004/diff/140001/chrome/browser/resources/print_preview/data/destination.js#newcode581 chrome/browser/resources/print_preview/data/destination.js:581: return arrayContains(this.tags_, Destination.EnterprisePrinterTag_); On 2017/01/18 at 20:59:06, skau wrote: ...
3 years, 11 months ago (2017-01-18 21:09:57 UTC) #38
skau
https://codereview.chromium.org/2618313004/diff/140001/chrome/browser/resources/print_preview/data/destination.js File chrome/browser/resources/print_preview/data/destination.js (right): https://codereview.chromium.org/2618313004/diff/140001/chrome/browser/resources/print_preview/data/destination.js#newcode581 chrome/browser/resources/print_preview/data/destination.js:581: return arrayContains(this.tags_, Destination.EnterprisePrinterTag_); On 2017/01/18 21:09:57, dpapad wrote: > ...
3 years, 11 months ago (2017-01-18 22:05:40 UTC) #39
xdai1
dpapad@, skau@, I've addressed your comments. Please take another look, thanks for your review! https://codereview.chromium.org/2618313004/diff/140001/chrome/browser/resources/print_preview/data/destination.js ...
3 years, 11 months ago (2017-01-19 01:10:17 UTC) #40
skau
https://codereview.chromium.org/2618313004/diff/160001/chrome/browser/resources/print_preview/data/destination.js File chrome/browser/resources/print_preview/data/destination.js (right): https://codereview.chromium.org/2618313004/diff/160001/chrome/browser/resources/print_preview/data/destination.js#newcode191 chrome/browser/resources/print_preview/data/destination.js:191: arrayContains(opt_params.tags, Destination.EnterprisePrinterTag_)) || Can we add an out_params.isEnterprise instead? ...
3 years, 11 months ago (2017-01-19 03:30:08 UTC) #41
xdai1
skau@, dpapad@, please take another look at this CL, thanks for your review! https://codereview.chromium.org/2618313004/diff/160001/chrome/browser/resources/print_preview/data/destination.js File ...
3 years, 11 months ago (2017-01-19 19:41:30 UTC) #42
skau
lgtm
3 years, 11 months ago (2017-01-19 22:39:00 UTC) #47
dpapad
LGTM with nit. https://codereview.chromium.org/2618313004/diff/180001/chrome/browser/resources/print_preview/data/local_parsers.js File chrome/browser/resources/print_preview/data/local_parsers.js (right): https://codereview.chromium.org/2618313004/diff/180001/chrome/browser/resources/print_preview/data/local_parsers.js#newcode19 chrome/browser/resources/print_preview/data/local_parsers.js:19: options.isEnterprisePrinter = destinationInfo.cupsEnterprisePrinter; Nit: var options ...
3 years, 11 months ago (2017-01-19 22:44:27 UTC) #48
xdai1
Thanks for your review! https://codereview.chromium.org/2618313004/diff/180001/chrome/browser/resources/print_preview/data/local_parsers.js File chrome/browser/resources/print_preview/data/local_parsers.js (right): https://codereview.chromium.org/2618313004/diff/180001/chrome/browser/resources/print_preview/data/local_parsers.js#newcode19 chrome/browser/resources/print_preview/data/local_parsers.js:19: options.isEnterprisePrinter = destinationInfo.cupsEnterprisePrinter; On 2017/01/19 ...
3 years, 11 months ago (2017-01-19 23:06:50 UTC) #49
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/2618313004/190013
3 years, 11 months ago (2017-01-19 23:08:00 UTC) #52
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 01:01:24 UTC) #55
Message was sent while issue was closed.
Committed patchset #8 (id:190013) as
https://chromium.googlesource.com/chromium/src/+/b4ceb8d03a240ef6399b09711eea...

Powered by Google App Engine
This is Rietveld 408576698