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

Unified Diff: chrome/service/cloud_print/cloud_print_connector.h

Issue 8965054: Coverity: Initialize member variables. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review fixes. Created 9 years 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 | « chrome/common/profiling.cc ('k') | content/browser/browser_process_sub_thread.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/service/cloud_print/cloud_print_connector.h
diff --git a/chrome/service/cloud_print/cloud_print_connector.h b/chrome/service/cloud_print/cloud_print_connector.h
index 34cf8289168041de8c3d82ee759665fff74d319c..a734b211e99983b9d9a9c05cdf6700e234c5f7b5 100644
--- a/chrome/service/cloud_print/cloud_print_connector.h
+++ b/chrome/service/cloud_print/cloud_print_connector.h
@@ -121,6 +121,7 @@ class CloudPrintConnector
void InitJobHandlerForPrinter(DictionaryValue* printer_data);
enum PendingTaskType {
+ PENDING_PRINTERS_NONE,
PENDING_PRINTERS_AVAILABLE,
PENDING_PRINTER_REGISTER,
PENDING_PRINTER_DELETE
@@ -133,7 +134,7 @@ class CloudPrintConnector
std::string printer_id; // For pending delete.
printing::PrinterBasicInfo printer_info; // For pending registration.
- PendingTask() {}
+ PendingTask() : type(PENDING_PRINTERS_NONE) {}
~PendingTask() {}
};
« no previous file with comments | « chrome/common/profiling.cc ('k') | content/browser/browser_process_sub_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698