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

Unified Diff: chromeos/printing/printer_translator.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: chromeos/printing/printer_translator.cc
diff --git a/chromeos/printing/printer_translator.cc b/chromeos/printing/printer_translator.cc
index 4574bf6d578437b93967d8655c45bc71ce1e03eb..38150d035c06c518a36655478065382cbc4e7026 100644
--- a/chromeos/printing/printer_translator.cc
+++ b/chromeos/printing/printer_translator.cc
@@ -112,6 +112,7 @@ std::unique_ptr<Printer> PrefToPrinter(const DictionaryValue& value) {
}
std::unique_ptr<Printer> printer = DictionaryToPrinter(value);
+ printer->set_source(Printer::SRC_USER_PREFS);
const DictionaryValue* ppd;
if (value.GetDictionary(kPpdReference, &ppd)) {
@@ -141,6 +142,7 @@ std::unique_ptr<base::DictionaryValue> PrinterToPref(const Printer& printer) {
std::unique_ptr<Printer> RecommendedPrinterToPrinter(
const base::DictionaryValue& pref) {
std::unique_ptr<Printer> printer = DictionaryToPrinter(pref);
+ printer->set_source(Printer::SRC_POLICY);
const DictionaryValue* ppd;
if (pref.GetDictionary(kPpdResource, &ppd)) {
« no previous file with comments | « chrome/browser/ui/webui/print_preview/printer_capabilities.cc ('k') | printing/backend/print_backend_consts.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698