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

Unified Diff: third_party/WebKit/Source/platform/graphics/CompositorFactory.cpp

Issue 2050123002: Remove OwnPtr from Blink. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments from Kent; merge. Created 4 years, 6 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: third_party/WebKit/Source/platform/graphics/CompositorFactory.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/CompositorFactory.cpp b/third_party/WebKit/Source/platform/graphics/CompositorFactory.cpp
index 4f2e88189f64a45203a2ddad59ae5a04a9bbffc8..6e1c75963a2675fec4167995f2f5632d840fbe2e 100644
--- a/third_party/WebKit/Source/platform/graphics/CompositorFactory.cpp
+++ b/third_party/WebKit/Source/platform/graphics/CompositorFactory.cpp
@@ -12,6 +12,7 @@
#include "platform/animation/CompositorTransformAnimationCurve.h"
#include "platform/animation/CompositorTransformOperations.h"
#include "platform/graphics/CompositorFilterOperations.h"
+#include <memory>
namespace blink {
@@ -79,10 +80,10 @@ void CompositorFactory::initializeDefault()
s_factory = new CompositorFactoryImpl();
}
-void CompositorFactory::initializeForTesting(PassOwnPtr<CompositorFactory> factory)
+void CompositorFactory::initializeForTesting(std::unique_ptr<CompositorFactory> factory)
{
delete s_factory;
- s_factory = factory.leakPtr();
+ s_factory = factory.release();
}
void CompositorFactory::shutdown()

Powered by Google App Engine
This is Rietveld 408576698