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

Unified Diff: chrome/browser/ui/webui/print_preview/print_preview_handler.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/print_preview_handler.cc
diff --git a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
index f9719d149980bb628d7a3d1d6743e68629b6b669..7ed472c6c1bc7c919dd148fdb70e956a11a5b849 100644
--- a/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
+++ b/chrome/browser/ui/webui/print_preview/print_preview_handler.cc
@@ -423,6 +423,11 @@ void PrintersToValues(const printing::PrinterList& printer_list,
for (const auto opt_it : printer.options)
options->SetString(opt_it.first, opt_it.second);
+ printer_info->SetBoolean(
+ kCUPSEnterprisePrinter,
+ base::ContainsKey(printer.options, kCUPSEnterprisePrinter) &&
+ printer.options.at(kCUPSEnterprisePrinter) == kValueTrue);
+
printer_info->Set(printing::kSettingPrinterOptions, std::move(options));
printers->Append(std::move(printer_info));

Powered by Google App Engine
This is Rietveld 408576698