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

Unified Diff: chrome/browser/chromeos/printing/printer_pref_manager.h

Issue 2618313004: [CUPS] Implement the enterprise icon for printers in Print Preview Dialog. (Closed)
Patch Set: Add the missing image. 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/chromeos/printing/printer_pref_manager.h
diff --git a/chrome/browser/chromeos/printing/printer_pref_manager.h b/chrome/browser/chromeos/printing/printer_pref_manager.h
index 222de0d1e279de24b6c757d2a1ea46bf61b00866..31df73467dc2506437e38b0515083545ae0281ba 100644
--- a/chrome/browser/chromeos/printing/printer_pref_manager.h
+++ b/chrome/browser/chromeos/printing/printer_pref_manager.h
@@ -40,6 +40,9 @@ class PrinterPrefManager : public KeyedService {
// Returns the printer with id |printer_id|.
std::unique_ptr<Printer> GetPrinter(const std::string& printer_id) const;
+ // Returns true if the printer is enterprise policy controlled printer.
+ bool IsEnterprisePrinter(const std::string& printer_id) const;
skau 2017/01/10 19:55:52 I would make this a property of printer rather tha
xdai1 2017/01/10 21:45:28 Done. Thanks for the suggestion!
+
// Adds or updates a printer. Printers are identified by the id field. Use an
// empty id to add a new printer.
void RegisterPrinter(std::unique_ptr<Printer> printer);

Powered by Google App Engine
This is Rietveld 408576698