Index: mojo/public/cpp/bindings/lib/array_internal.h |
diff --git a/mojo/public/cpp/bindings/lib/array_internal.h b/mojo/public/cpp/bindings/lib/array_internal.h |
index a4e36a7caad28203819f596e580a5953aa60ad34..a047db26e0bb87a9018018d5a6ef0ce5ba74da0f 100644 |
--- a/mojo/public/cpp/bindings/lib/array_internal.h |
+++ b/mojo/public/cpp/bindings/lib/array_internal.h |
@@ -206,7 +206,7 @@ struct ArraySerializationHelper<Handle, true> { |
Handle_type_should_not_have_array_validate_params); |
for (uint32_t i = 0; i < header->num_elements; ++i) { |
- if (IsNonNullableValidationEnabled() && !element_is_nullable && |
+ if (!element_is_nullable && |
elements[i].value() == kEncodedInvalidHandleValue) { |
ReportValidationError(VALIDATION_ERROR_UNEXPECTED_INVALID_HANDLE); |
return false; |
@@ -271,8 +271,7 @@ struct ArraySerializationHelper<P*, false> { |
const ElementType* elements, |
BoundsChecker* bounds_checker) { |
for (uint32_t i = 0; i < header->num_elements; ++i) { |
- if (IsNonNullableValidationEnabled() && !element_is_nullable && |
- !elements[i].offset) { |
+ if (!element_is_nullable && !elements[i].offset) { |
ReportValidationError(VALIDATION_ERROR_UNEXPECTED_NULL_POINTER); |
return false; |
} |