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

Unified Diff: cc/test/fake_mask_layer_impl.cc

Issue 1866203004: Convert //cc from scoped_ptr to std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptrcc: rebase Created 4 years, 8 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
« no previous file with comments | « cc/test/fake_mask_layer_impl.h ('k') | cc/test/fake_output_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_mask_layer_impl.cc
diff --git a/cc/test/fake_mask_layer_impl.cc b/cc/test/fake_mask_layer_impl.cc
index 96dc6728daba129505a22b65813f4f110269c2e0..e76bad21864c5fe3c1618d81c27f12e3049d7ecc 100644
--- a/cc/test/fake_mask_layer_impl.cc
+++ b/cc/test/fake_mask_layer_impl.cc
@@ -4,15 +4,17 @@
#include "cc/test/fake_mask_layer_impl.h"
+#include "base/memory/ptr_util.h"
+
namespace cc {
FakeMaskLayerImpl::FakeMaskLayerImpl(LayerTreeImpl* tree_impl, int id)
: LayerImpl(tree_impl, id) {}
-scoped_ptr<FakeMaskLayerImpl> FakeMaskLayerImpl::Create(
+std::unique_ptr<FakeMaskLayerImpl> FakeMaskLayerImpl::Create(
LayerTreeImpl* tree_impl,
int id) {
- return make_scoped_ptr(new FakeMaskLayerImpl(tree_impl, id));
+ return base::WrapUnique(new FakeMaskLayerImpl(tree_impl, id));
}
void FakeMaskLayerImpl::GetContentsResourceId(ResourceId* resource_id,
« no previous file with comments | « cc/test/fake_mask_layer_impl.h ('k') | cc/test/fake_output_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698