| Index: ui/gfx/color_profile.cc
|
| diff --git a/ui/gfx/color_profile.cc b/ui/gfx/color_profile.cc
|
| index 42d6967a056a4161d54e75fca80b4a8d78cba635..3f6e60ff85898a053d9ec83cdeb53c6878eb6a03 100644
|
| --- a/ui/gfx/color_profile.cc
|
| +++ b/ui/gfx/color_profile.cc
|
| @@ -12,6 +12,12 @@ static const size_t kMinProfileLength = 128;
|
| static const size_t kMaxProfileLength = 4 * 1024 * 1024;
|
| }
|
|
|
| +ColorProfile::ColorProfile(const std::vector<char>& profile)
|
| + : profile_(profile) {
|
| + if (!IsValidProfileLength(profile_.size()))
|
| + profile_.clear();
|
| +}
|
| +
|
| ColorProfile::ColorProfile() = default;
|
| ColorProfile::ColorProfile(ColorProfile&& other) = default;
|
| ColorProfile::ColorProfile(const ColorProfile& other) = default;
|
|
|