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

Unified Diff: cc/test/fake_scoped_ui_resource.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_scoped_ui_resource.h ('k') | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_scoped_ui_resource.cc
diff --git a/cc/test/fake_scoped_ui_resource.cc b/cc/test/fake_scoped_ui_resource.cc
index 0631cd846cd1db247bad09c2919c075e392261ae..81e26d929ab6e621b44fa8b31851c9c50e44d0c7 100644
--- a/cc/test/fake_scoped_ui_resource.cc
+++ b/cc/test/fake_scoped_ui_resource.cc
@@ -4,6 +4,7 @@
#include "cc/test/fake_scoped_ui_resource.h"
+#include "base/memory/ptr_util.h"
#include "cc/trees/layer_tree_host.h"
namespace cc {
@@ -17,9 +18,9 @@ UIResourceBitmap CreateMockUIResourceBitmap() {
} // anonymous namespace
-scoped_ptr<FakeScopedUIResource> FakeScopedUIResource::Create(
+std::unique_ptr<FakeScopedUIResource> FakeScopedUIResource::Create(
LayerTreeHost* host) {
- return make_scoped_ptr(new FakeScopedUIResource(host));
+ return base::WrapUnique(new FakeScopedUIResource(host));
}
FakeScopedUIResource::FakeScopedUIResource(LayerTreeHost* host)
« no previous file with comments | « cc/test/fake_scoped_ui_resource.h ('k') | cc/test/fake_tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698