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

Unified Diff: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.cpp

Issue 2494333002: Replace wrapUnique(new T(args)) by makeUnique<T>(args) in Blink (Closed)
Patch Set: Drop redundant WTF:: Created 4 years, 1 month 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: third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.cpp
diff --git a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.cpp b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.cpp
index d94b2e6f4b7071cc3096400ff71990fa70054f9a..c475109c06c3599e2adf3819fff771df81ea9adc 100644
--- a/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.cpp
+++ b/third_party/WebKit/Source/platform/image-decoders/gif/GIFImageReader.cpp
@@ -342,7 +342,7 @@ bool GIFFrameContext::decode(blink::FastSharedBufferReader* reader,
if (!isDataSizeDefined() || !isHeaderDefined())
return true;
- m_lzwContext = wrapUnique(new GIFLZWContext(client, this));
+ m_lzwContext = makeUnique<GIFLZWContext>(client, this);
if (!m_lzwContext->prepareToDecode()) {
m_lzwContext.reset();
return false;

Powered by Google App Engine
This is Rietveld 408576698