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

Unified Diff: chromeos/printing/printer_configuration.h

Issue 2232573002: Fix uninitialized fields in Printer::PPDFile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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_translator.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 7039e7f2bef83857a18f0291f57068abbd80ac8b..a88b9cc1f56805fa1ccae25ef4ca14bb924565cb 100644
--- a/chromeos/printing/printer_configuration.h
+++ b/chromeos/printing/printer_configuration.h
@@ -19,17 +19,17 @@ class CHROMEOS_EXPORT Printer {
// setup.
struct PPDFile {
// Identifier from the quirks server. -1 otherwise.
- int id;
+ int id = -1;
std::string file_name;
// If there is a file with a later version on the quirks server, that file
// should be used. The default value is 0.
- int version_number;
+ int version_number = 0;
// This will be true if the file was retrived from the quirks server.
// Otherwise, the file was saved to disk by the user.
- bool from_quirks_server;
+ bool from_quirks_server = false;
};
// Constructs a printer object that is completely empty.
« no previous file with comments | « no previous file | chromeos/printing/printer_translator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698