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

Unified Diff: components/webp_transcode/webp_decoder.h

Issue 1917673002: Convert //components/[u-z]* 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
Index: components/webp_transcode/webp_decoder.h
diff --git a/components/webp_transcode/webp_decoder.h b/components/webp_transcode/webp_decoder.h
index 1fa93f78c1be83b433e348210d9d02b96d755083..1cfd6ffad8a7c57b90a166f6939342ef969309ff 100644
--- a/components/webp_transcode/webp_decoder.h
+++ b/components/webp_transcode/webp_decoder.h
@@ -8,9 +8,10 @@
#import <Foundation/Foundation.h>
#include <stddef.h>
+#include <memory>
+
#include "base/mac/scoped_nsobject.h"
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "third_party/libwebp/webp/decode.h"
@class NSData;
@@ -66,7 +67,7 @@ class WebpDecoder : public base::RefCountedThreadSafe<WebpDecoder> {
scoped_refptr<WebpDecoder::Delegate> delegate_;
WebPDecoderConfig config_;
WebpDecoder::State state_;
- scoped_ptr<WebPIDecoder, WebPIDecoderDeleter> incremental_decoder_;
+ std::unique_ptr<WebPIDecoder, WebPIDecoderDeleter> incremental_decoder_;
base::scoped_nsobject<NSData> output_buffer_;
base::scoped_nsobject<NSMutableData> features_;
int has_alpha_;
« no previous file with comments | « components/webdata_services/web_data_service_wrapper.cc ('k') | components/webp_transcode/webp_decoder_unittest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698