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

Unified Diff: chromeos/printing/printer_configuration.cc

Issue 2858353004: Track printer installations for each configuration. (Closed)
Patch Set: swaps Created 3 years, 7 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.cc
diff --git a/chromeos/printing/printer_configuration.cc b/chromeos/printing/printer_configuration.cc
index 9b6f66328c93af86efccb2da3a47f6a19cb1f1e6..992032f5728e2afeabbb4ec525f601bd6000c20c 100644
--- a/chromeos/printing/printer_configuration.cc
+++ b/chromeos/printing/printer_configuration.cc
@@ -10,11 +10,12 @@
namespace chromeos {
-Printer::Printer() : source_(SRC_USER_PREFS) {
+Printer::Printer() : source_(SRC_USER_PREFS), last_updated_() {
Lei Zhang 2017/05/08 21:42:48 No need to initialize |last_updated_| here.
skau 2017/05/09 00:52:01 Done.
id_ = base::GenerateGUID();
}
-Printer::Printer(const std::string& id) : id_(id), source_(SRC_USER_PREFS) {
+Printer::Printer(const std::string& id, const base::Time& last_updated)
+ : id_(id), source_(SRC_USER_PREFS), last_updated_(last_updated) {
if (id_.empty())
id_ = base::GenerateGUID();
}

Powered by Google App Engine
This is Rietveld 408576698