Chromium Code Reviews| 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); |
|
skau
2017/01/10 22:10:38
Can you update the unittest to check for this?
xdai1
2017/01/10 23:32:43
Done.
|
| const DictionaryValue* ppd; |
| if (pref.GetDictionary(kPpdResource, &ppd)) { |