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

Unified Diff: cc/resources/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/resources/scoped_ui_resource.h ('k') | cc/resources/shared_bitmap_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/scoped_ui_resource.cc
diff --git a/cc/resources/scoped_ui_resource.cc b/cc/resources/scoped_ui_resource.cc
index 2db3edd12f5857db10db572ba179bbcbcc2e2f83..4ac336d2fe7dd434b12b3979f97395cfaaea676c 100644
--- a/cc/resources/scoped_ui_resource.cc
+++ b/cc/resources/scoped_ui_resource.cc
@@ -5,14 +5,15 @@
#include "cc/resources/scoped_ui_resource.h"
#include "base/bind.h"
+#include "base/memory/ptr_util.h"
#include "cc/trees/layer_tree_host.h"
namespace cc {
-scoped_ptr<ScopedUIResource> ScopedUIResource::Create(
+std::unique_ptr<ScopedUIResource> ScopedUIResource::Create(
LayerTreeHost* host,
const UIResourceBitmap& bitmap) {
- return make_scoped_ptr(new ScopedUIResource(host, bitmap));
+ return base::WrapUnique(new ScopedUIResource(host, bitmap));
}
ScopedUIResource::ScopedUIResource(LayerTreeHost* host,
« no previous file with comments | « cc/resources/scoped_ui_resource.h ('k') | cc/resources/shared_bitmap_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698