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

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

Issue 2389973002: Use std::unique_ptr to signal ownership transfer in WebCompositorSupport (Closed)
Patch Set: rebase Created 4 years, 2 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 e56eefec6fde376976fad05dd9722d363e90ef37..8ced299e119e36102b46e9c77918671274d329c0 100644
--- a/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebPluginContainerTest.cpp
@@ -65,7 +65,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;
@@ -679,8 +678,7 @@ class CompositedPlugin : public FakeWebPlugin {
public:
CompositedPlugin(WebLocalFrame* frame, const WebPluginParams& params)
: FakeWebPlugin(frame, params),
- m_layer(wrapUnique(
- Platform::current()->compositorSupport()->createLayer())) {}
+ m_layer(Platform::current()->compositorSupport()->createLayer()) {}
WebLayer* getWebLayer() const { return m_layer.get(); }

Powered by Google App Engine
This is Rietveld 408576698