Index: mojo/public/cpp/bindings/lib/map_serialization.h |
diff --git a/mojo/public/cpp/bindings/lib/map_serialization.h b/mojo/public/cpp/bindings/lib/map_serialization.h |
index 60b6364fb4a310a7d2b667ff9657dec996d972f5..5df94cd7f230bf229bba7e2a639d7f748b297be8 100644 |
--- a/mojo/public/cpp/bindings/lib/map_serialization.h |
+++ b/mojo/public/cpp/bindings/lib/map_serialization.h |
@@ -107,13 +107,10 @@ struct Serializer<Map<Key, Value>, MaybeConstUserType> { |
return struct_overhead + keys_size + values_size; |
} |
- // We don't need an ArrayValidateParams instance for key validation since |
- // we can deduce it from the Key type. (which can only be primitive types or |
- // non-nullable strings.) |
static void Serialize(MaybeConstUserType& input, |
Buffer* buf, |
Data** output, |
- const ArrayValidateParams* validate_params, |
+ const ContainerValidateParams* validate_params, |
SerializationContext* context) { |
DCHECK(validate_params->key_validate_params); |
DCHECK(validate_params->element_validate_params); |