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

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

Issue 2457933004: Register and select printer on click. (Closed)
Patch Set: rebase Created 4 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/printing/printer_pref_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 710616d12e0ade55fb2c4f7be2bbe2bf147783c2..69cb923152b20b8a40ae719499d2c5f3609caa96 100644
--- a/chrome/browser/chromeos/printing/printer_pref_manager.h
+++ b/chrome/browser/chromeos/printing/printer_pref_manager.h
@@ -31,6 +31,9 @@ class PrinterPrefManager : public KeyedService {
// Returns the printers that are saved in preferences.
std::vector<std::unique_ptr<Printer>> GetPrinters() const;
+ // Returns the printer with id |printer_id|.
+ std::unique_ptr<Printer> GetPrinter(const std::string& printer_id) const;
+
// 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);
« no previous file with comments | « no previous file | chrome/browser/chromeos/printing/printer_pref_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698