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

Unified Diff: chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc

Issue 2618313004: [CUPS] Implement the enterprise icon for printers in Print Preview Dialog. (Closed)
Patch Set: Address dpapad@'s comments. Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc
diff --git a/chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc b/chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc
index c03370c1aaeae9ebff00acc5edae13b6465e7b15..6b757659c4a009775b65ef272600eb3c3f06805c 100644
--- a/chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc
+++ b/chrome/browser/ui/webui/print_preview/printer_backend_proxy_chromeos.cc
@@ -43,6 +43,9 @@ printing::PrinterBasicInfo ToBasicInfo(const chromeos::Printer& printer) {
// TODO(skau): Unify Mac with the other platforms for display name
// presentation so I can remove this strange code.
basic_info.options[kDriverInfoTagName] = printer.description();
+ basic_info.options[kCUPSEnterprisePrinter] =
+ (printer.source() == chromeos::Printer::SRC_POLICY) ? kValueTrue
+ : kValueFalse;
basic_info.printer_name = printer.id();
basic_info.printer_description = printer.display_name();
return basic_info;

Powered by Google App Engine
This is Rietveld 408576698