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

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 skau@'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 2d068a4445eb8035b3a362ef16f72b23dc0d4fc2..876ee1bd0371446f79e188acb96e854de7fc9a6a 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
@@ -41,6 +41,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