| Index: chromeos/printing/printer_configuration.cc
|
| diff --git a/chromeos/printing/printer_configuration.cc b/chromeos/printing/printer_configuration.cc
|
| index 12d860f9beb71ccdab93978a470e2c4da868bbf2..3101d15ee9c12cd5afea5cce9abd746514791299 100644
|
| --- a/chromeos/printing/printer_configuration.cc
|
| +++ b/chromeos/printing/printer_configuration.cc
|
| @@ -6,11 +6,18 @@
|
|
|
| #include <string>
|
|
|
| +#include "base/guid.h"
|
| +
|
| namespace chromeos {
|
|
|
| -Printer::Printer() {}
|
| +Printer::Printer() {
|
| + id_ = base::GenerateGUID();
|
| +}
|
|
|
| -Printer::Printer(const std::string& id) : id_(id) {}
|
| +Printer::Printer(const std::string& id) : id_(id) {
|
| + if (id_.empty())
|
| + id_ = base::GenerateGUID();
|
| +}
|
|
|
| Printer::Printer(const Printer& other) = default;
|
|
|
|
|