| Index: chrome/browser/chromeos/printing/printer_pref_manager.cc
|
| diff --git a/chrome/browser/chromeos/printing/printer_pref_manager.cc b/chrome/browser/chromeos/printing/printer_pref_manager.cc
|
| index 3e52bf1ea9e5f0a46db689859aa443ab3a8f6a31..9d52df051827ff119cd14fdafa47718788f08821 100644
|
| --- a/chrome/browser/chromeos/printing/printer_pref_manager.cc
|
| +++ b/chrome/browser/chromeos/printing/printer_pref_manager.cc
|
| @@ -139,6 +139,13 @@ std::unique_ptr<Printer> PrinterPrefManager::GetPrinter(
|
| return printer ? printing::PrefToPrinter(*printer) : nullptr;
|
| }
|
|
|
| +bool PrinterPrefManager::IsEnterprisePrinter(
|
| + const std::string& printer_id) const {
|
| + return std::find(recommended_printer_ids_.begin(),
|
| + recommended_printer_ids_.end(),
|
| + printer_id) != recommended_printer_ids_.end();
|
| +}
|
| +
|
| void PrinterPrefManager::RegisterPrinter(std::unique_ptr<Printer> printer) {
|
| if (printer->id().empty())
|
| printer->set_id(base::GenerateGUID());
|
|
|