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

Unified Diff: components/signin/core/browser/account_info.cc

Issue 1588913002: Fix AccountInfo uninitialized memory issues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicit default value to false Created 4 years, 11 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 | components/signin/core/browser/account_info_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/browser/account_info.cc
diff --git a/components/signin/core/browser/account_info.cc b/components/signin/core/browser/account_info.cc
index 1392c284329ba40373c087baca931c2bf79a7193..712e2a386426b4cd4d90dc3c1ee0a5fec865235a 100644
--- a/components/signin/core/browser/account_info.cc
+++ b/components/signin/core/browser/account_info.cc
@@ -21,7 +21,16 @@ bool UpdateField(bool* field, bool new_value) {
}
}
-AccountInfo::AccountInfo() {}
+AccountInfo::AccountInfo()
+ : account_id(),
+ gaia(),
+ email(),
+ full_name(),
+ given_name(),
+ hosted_domain(),
+ locale(),
+ picture_url(),
+ is_child_account(false) {}
AccountInfo::~AccountInfo() {}
bool AccountInfo::IsValid() const {
« no previous file with comments | « no previous file | components/signin/core/browser/account_info_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698