Skip to content

Commit 1421ea5

Browse files
committed
replace webkit ImageDecoder
1 parent a1d382d commit 1421ea5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nw_package.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
#include "ui/base/resource/resource_bundle.h"
4444
#include "ui/gfx/image/image.h"
4545
#include "ui/gfx/image/image_skia_rep.h"
46-
#include "content/child/image_decoder.h"
46+
#include "ui/gfx/codec/png_codec.h"
4747

4848
bool IsSwitch(const CommandLine::StringType& string,
4949
CommandLine::StringType* switch_string,
@@ -196,7 +196,7 @@ bool Package::GetImage(const FilePath& icon_path, gfx::Image* image) {
196196
// locked-down utility process. Only if the decoding succeeds is the image
197197
// saved from memory to disk and subsequently used in the Chrome UI.
198198
// Chrome is therefore decoding bitmaps here that were generated by Chrome.
199-
*decoded = decoder.Decode(data, file_contents.length());
199+
gfx::PNGCodec::Decode(data, file_contents.length(), decoded.get());
200200
if (decoded->empty())
201201
return false; // Unable to decode.
202202

0 commit comments

Comments
 (0)