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

Unified Diff: chromeos/printing/printer_configuration.h

Issue 2343063004: Enable copy and assignment for Printer objects. (Closed)
Patch Set: Created 4 years, 3 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
« no previous file with comments | « no previous file | chromeos/printing/printer_configuration.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/printing/printer_configuration.h
diff --git a/chromeos/printing/printer_configuration.h b/chromeos/printing/printer_configuration.h
index a88b9cc1f56805fa1ccae25ef4ca14bb924565cb..fc82c293798c94a84e7f71e5216374fdf54c69d9 100644
--- a/chromeos/printing/printer_configuration.h
+++ b/chromeos/printing/printer_configuration.h
@@ -38,6 +38,10 @@ class CHROMEOS_EXPORT Printer {
// Constructs a printer object with an id.
explicit Printer(const std::string& id);
+ // Copy constructor and assignment.
+ explicit Printer(const Printer& printer);
+ Printer& operator=(const Printer& printer);
+
~Printer();
const std::string& id() const { return id_; }
@@ -95,8 +99,6 @@ class CHROMEOS_EXPORT Printer {
// The UUID from an autoconf protocol for deduplication. Could be empty.
std::string uuid_;
-
- DISALLOW_COPY_AND_ASSIGN(Printer);
};
} // namespace chromeos
« no previous file with comments | « no previous file | chromeos/printing/printer_configuration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698