fixup: Change gfx::[PNG|JPEG]Codec::Decode to return a SkBitmap

This commit is contained in:
John Kleinschmidt
2024-10-14 21:45:19 -04:00
parent c59278da6d
commit 9cb708d91d

View File

@@ -37,7 +37,7 @@ bool SaveIconToPath(const SkBitmap& bitmap, const base::FilePath& path) {
if (!png_data.has_value())
return false;
return base::WriteFile(path, png_data);
return base::WriteFile(path, png_data.value());
}
} // namespace