Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Unified Diff: chrome/utility/image_decoder_impl.cc

Issue 1899083002: Convert //chrome from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/utility/extensions/extensions_handler.cc ('k') | chrome/utility/image_writer/disk_unmounter_mac.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/utility/image_decoder_impl.cc
diff --git a/chrome/utility/image_decoder_impl.cc b/chrome/utility/image_decoder_impl.cc
index 77c03b4c615f3189972db293291d202c353b0b18..91cea1b616f391e9a75e816ba93f7d6c1072848e 100644
--- a/chrome/utility/image_decoder_impl.cc
+++ b/chrome/utility/image_decoder_impl.cc
@@ -53,9 +53,8 @@ void ImageDecoderImpl::DecodeImage(
if (codec == mojom::ImageCodec::ROBUST_JPEG) {
// Our robust jpeg decoding is using IJG libjpeg.
if (encoded_data.size()) {
- scoped_ptr<SkBitmap> decoded_jpeg(
- gfx::JPEGCodecRobustSlow::Decode(encoded_data.storage().data(),
- encoded_data.size()));
+ std::unique_ptr<SkBitmap> decoded_jpeg(gfx::JPEGCodecRobustSlow::Decode(
+ encoded_data.storage().data(), encoded_data.size()));
if (decoded_jpeg.get() && !decoded_jpeg->empty())
decoded_image = *decoded_jpeg;
}
« no previous file with comments | « chrome/utility/extensions/extensions_handler.cc ('k') | chrome/utility/image_writer/disk_unmounter_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698