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

Unified Diff: extensions/renderer/argument_spec.h

Issue 2858633004: [Extensions Bindings] Fix uninitialized member in ArgumentSpec (Closed)
Patch Set: d'oh Created 3 years, 8 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 | extensions/renderer/argument_spec.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/argument_spec.h
diff --git a/extensions/renderer/argument_spec.h b/extensions/renderer/argument_spec.h
index 4c85858326b5f19f879e7a1bc4313d232ba0f3b5..84e27731c68bfce5923addb0c87c882465945fe8 100644
--- a/extensions/renderer/argument_spec.h
+++ b/extensions/renderer/argument_spec.h
@@ -121,13 +121,13 @@ class ArgumentSpec {
std::string name_;
// The type of the argument.
- ArgumentType type_;
+ ArgumentType type_ = ArgumentType::INTEGER;
// Whether or not the argument is required.
- bool optional_;
+ bool optional_ = false;
// Whether to preserve null properties found in objects.
- bool preserve_null_;
+ bool preserve_null_ = false;
// The reference the argument points to, if any. Note that if this is set,
// none of the following fields describing the argument will be.
« no previous file with comments | « no previous file | extensions/renderer/argument_spec.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698