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

Unified Diff: chromeos/printing/printer_configuration.h

Issue 2956173002: Introduce the field make_and_model for synced printers. (Closed)
Patch Set: add back old fields Created 3 years, 6 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_configuration.h
diff --git a/chromeos/printing/printer_configuration.h b/chromeos/printing/printer_configuration.h
index 2ed1130bb083a691428b303f9385cf1916fd2907..582e2f35f741d6df3cb62627f4ccc12772b59e12 100644
--- a/chromeos/printing/printer_configuration.h
+++ b/chromeos/printing/printer_configuration.h
@@ -95,6 +95,11 @@ class CHROMEOS_EXPORT Printer {
const std::string& model() const { return model_; }
void set_model(const std::string& model) { model_ = model; }
+ const std::string& make_and_model() const { return make_and_model_; }
+ void set_make_and_model(const std::string& make_and_model) {
+ make_and_model_ = make_and_model;
+ }
+
const std::string& uri() const { return uri_; }
void set_uri(const std::string& uri) { uri_ = uri; }
@@ -135,6 +140,10 @@ class CHROMEOS_EXPORT Printer {
// The model of the printer, e.g. OfficeJet 415
std::string model_;
+ // The manufactuer and model of the printer in one string. e.g. HP OfficeJet
+ // 415.
+ std::string make_and_model_;
+
// The full path for the printer. Suitable for configuration in CUPS.
// Contains protocol, hostname, port, and queue.
std::string uri_;

Powered by Google App Engine
This is Rietveld 408576698