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

Unified Diff: third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/web/tests/WebPluginContainerTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp b/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
index f6084a73e1c3994dfa18c086c8be82a777c821a9..b69327a7f52ea1a6b76107a139bfb1c659756156 100644
--- a/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
@@ -66,8 +66,6 @@
#include "web/WebViewImpl.h"
#include "web/tests/FakeWebPlugin.h"
#include "web/tests/FrameTestHelpers.h"
-#include "wtf/PtrUtil.h"
-#include <memory>
using blink::testing::runPendingTasks;
@@ -604,7 +602,7 @@ class CompositedPlugin : public FakeWebPlugin {
public:
CompositedPlugin(WebLocalFrame* frame, const WebPluginParams& params)
: FakeWebPlugin(frame, params)
- , m_layer(wrapUnique(Platform::current()->compositorSupport()->createLayer()))
+ , m_layer(adoptPtr(Platform::current()->compositorSupport()->createLayer()))
{
}
@@ -627,7 +625,7 @@ public:
}
private:
- std::unique_ptr<WebLayer> m_layer;
+ OwnPtr<WebLayer> m_layer;
};
class ScopedSPv2 {
@@ -658,7 +656,7 @@ TEST_F(WebPluginContainerTest, CompositedPluginSPv2)
Element* element = static_cast<Element*>(container->element());
const auto* plugin = static_cast<const CompositedPlugin*>(container->plugin());
- std::unique_ptr<PaintController> paintController = PaintController::create();
+ OwnPtr<PaintController> paintController = PaintController::create();
GraphicsContext graphicsContext(*paintController);
container->paint(graphicsContext, CullRect(IntRect(10, 10, 400, 300)));
paintController->commitNewDisplayItems();
« no previous file with comments | « third_party/WebKit/Source/web/tests/WebFrameTest.cpp ('k') | third_party/WebKit/Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698