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

Unified Diff: third_party/WebKit/Source/modules/ModulesInitializer.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/modules/ModulesInitializer.cpp
diff --git a/third_party/WebKit/Source/modules/ModulesInitializer.cpp b/third_party/WebKit/Source/modules/ModulesInitializer.cpp
index c3a9e6ba752a459ce7242f04b25f8e49f31d4ef2..59f9c21a0c7b1d94b243c9283f0cc4d633f8e458 100644
--- a/third_party/WebKit/Source/modules/ModulesInitializer.cpp
+++ b/third_party/WebKit/Source/modules/ModulesInitializer.cpp
@@ -59,19 +59,19 @@ void ModulesInitializer::initialize() {
// Canvas context types must be registered with the HTMLCanvasElement.
HTMLCanvasElement::registerRenderingContextFactory(
- wrapUnique(new CanvasRenderingContext2D::Factory()));
+ makeUnique<CanvasRenderingContext2D::Factory>());
HTMLCanvasElement::registerRenderingContextFactory(
- wrapUnique(new WebGLRenderingContext::Factory()));
+ makeUnique<WebGLRenderingContext::Factory>());
HTMLCanvasElement::registerRenderingContextFactory(
- wrapUnique(new WebGL2RenderingContext::Factory()));
+ makeUnique<WebGL2RenderingContext::Factory>());
HTMLCanvasElement::registerRenderingContextFactory(
- wrapUnique(new ImageBitmapRenderingContext::Factory()));
+ makeUnique<ImageBitmapRenderingContext::Factory>());
// OffscreenCanvas context types must be registered with the OffscreenCanvas.
OffscreenCanvas::registerRenderingContextFactory(
- wrapUnique(new OffscreenCanvasRenderingContext2D::Factory()));
+ makeUnique<OffscreenCanvasRenderingContext2D::Factory>());
OffscreenCanvas::registerRenderingContextFactory(
- wrapUnique(new WebGLRenderingContext::Factory()));
+ makeUnique<WebGLRenderingContext::Factory>());
ASSERT(isInitialized());
}

Powered by Google App Engine
This is Rietveld 408576698