| Index: ui/gfx/mojo/icc_profile_struct_traits.cc
|
| diff --git a/ui/gfx/mojo/icc_profile_struct_traits.cc b/ui/gfx/mojo/icc_profile_struct_traits.cc
|
| index eec4aadc2e2da075b4e290775a0a42cfb4067f6e..e612f362903d499e01068c65b840e17b0bd35ba8 100644
|
| --- a/ui/gfx/mojo/icc_profile_struct_traits.cc
|
| +++ b/ui/gfx/mojo/icc_profile_struct_traits.cc
|
| @@ -14,7 +14,10 @@ using Traits = StructTraits<gfx::mojom::ICCProfileDataView, gfx::ICCProfile>;
|
|
|
| // static
|
| bool Traits::Read(gfx::mojom::ICCProfileDataView data, gfx::ICCProfile* out) {
|
| - out->valid_ = data.valid();
|
| + if (!data.ReadType(&out->type_))
|
| + return false;
|
| + if (!data.ReadColorSpace(&out->color_space_))
|
| + return false;
|
| out->id_ = data.id();
|
|
|
| mojo::StringDataView view;
|
|
|