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

Unified Diff: chrome/browser/google_apis/drive_api_parser.cc

Issue 10961037: [Coverity] Fix uninitialized members in ctor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/google_apis/drive_api_parser.cc
diff --git a/chrome/browser/google_apis/drive_api_parser.cc b/chrome/browser/google_apis/drive_api_parser.cc
index 267081760f1d5922a68db9e4ce656ab9f2cfa0f5..050437d8941f8bf14f22a2fdcd4a9e3f3d1fb7b8 100644
--- a/chrome/browser/google_apis/drive_api_parser.cc
+++ b/chrome/browser/google_apis/drive_api_parser.cc
@@ -214,7 +214,7 @@ bool AboutResource::Parse(const base::Value& value) {
////////////////////////////////////////////////////////////////////////////////
// DriveAppIcon implementation
-DriveAppIcon::DriveAppIcon() {}
+DriveAppIcon::DriveAppIcon() : category_(UNKNOWN), icon_side_length_(0) {}
DriveAppIcon::~DriveAppIcon() {}
@@ -266,7 +266,12 @@ bool DriveAppIcon::GetIconCategory(const base::StringPiece& category,
////////////////////////////////////////////////////////////////////////////////
// AppResource implementation
-AppResource::AppResource() {}
+AppResource::AppResource()
+ : supports_create_(false),
+ supports_import_(false),
+ installed_(false),
+ authorized_(false) {
+}
AppResource::~AppResource() {}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698