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

Unified Diff: cc/resources/memory_history.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/memory_history.h ('k') | cc/resources/resource_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/memory_history.cc
diff --git a/cc/resources/memory_history.cc b/cc/resources/memory_history.cc
index 29bad2a30b32946656aad5e86b971074525fee76..caf849807e9021428d4f8da9bc4e7a998366a41a 100644
--- a/cc/resources/memory_history.cc
+++ b/cc/resources/memory_history.cc
@@ -6,11 +6,13 @@
#include <limits>
+#include "base/memory/ptr_util.h"
+
namespace cc {
// static
-scoped_ptr<MemoryHistory> MemoryHistory::Create() {
- return make_scoped_ptr(new MemoryHistory());
+std::unique_ptr<MemoryHistory> MemoryHistory::Create() {
+ return base::WrapUnique(new MemoryHistory());
}
MemoryHistory::MemoryHistory() {}
« no previous file with comments | « cc/resources/memory_history.h ('k') | cc/resources/resource_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698