| Index: ui/gfx/chromeos/codec/jpeg_codec_robust_slow.cc
|
| diff --git a/ui/gfx/chromeos/codec/jpeg_codec_robust_slow.cc b/ui/gfx/chromeos/codec/jpeg_codec_robust_slow.cc
|
| index c5a78aac036c16d1557607bd9df131c27d08af4b..b7ceefd7bcc4b83c934877341a828af7628b8d2b 100644
|
| --- a/ui/gfx/chromeos/codec/jpeg_codec_robust_slow.cc
|
| +++ b/ui/gfx/chromeos/codec/jpeg_codec_robust_slow.cc
|
| @@ -6,8 +6,9 @@
|
|
|
| #include <setjmp.h>
|
|
|
| +#include <memory>
|
| +
|
| #include "base/logging.h"
|
| -#include "base/memory/scoped_ptr.h"
|
| #include "third_party/skia/include/core/SkBitmap.h"
|
| #include "third_party/skia/include/core/SkColorPriv.h"
|
|
|
| @@ -305,7 +306,8 @@ bool JPEGCodecRobustSlow::Decode(const unsigned char* input, size_t input_size,
|
|
|
| output->resize(row_write_stride * cinfo.output_height);
|
|
|
| - scoped_ptr<unsigned char[]> row_data(new unsigned char[row_read_stride]);
|
| + std::unique_ptr<unsigned char[]> row_data(
|
| + new unsigned char[row_read_stride]);
|
| unsigned char* rowptr = row_data.get();
|
| for (int row = 0; row < static_cast<int>(cinfo.output_height); row++) {
|
| if (!jpeg_read_scanlines(&cinfo, &rowptr, 1))
|
|
|