Index: ui/gfx/icc_profile.cc |
diff --git a/ui/gfx/icc_profile.cc b/ui/gfx/icc_profile.cc |
index b1cd8d1150978308463c6ff5947e30a5ad9c055a..118a071124a06c7c064c1f5f20bf596429affda3 100644 |
--- a/ui/gfx/icc_profile.cc |
+++ b/ui/gfx/icc_profile.cc |
@@ -105,6 +105,9 @@ const std::vector<char>& ICCProfile::GetData() const { |
} |
ColorSpace ICCProfile::GetColorSpace() const { |
+ if (!valid_) |
+ return gfx::ColorSpace(); |
+ |
ColorSpace color_space(ColorSpace::PrimaryID::CUSTOM, |
ColorSpace::TransferID::CUSTOM, |
ColorSpace::MatrixID::RGB, ColorSpace::RangeID::FULL); |