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

Unified Diff: cc/base/list_container_helper.h

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/base/list_container.h ('k') | cc/base/list_container_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/list_container_helper.h
diff --git a/cc/base/list_container_helper.h b/cc/base/list_container_helper.h
index 61ca25e8858e85691410ee62bd92ddd690cfc368..d4f5ead8ac7f5c61b8c005e8b3a36dd54b7cafbf 100644
--- a/cc/base/list_container_helper.h
+++ b/cc/base/list_container_helper.h
@@ -7,8 +7,9 @@
#include <stddef.h>
+#include <memory>
+
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "cc/base/cc_export.h"
namespace cc {
@@ -171,7 +172,7 @@ class CC_EXPORT ListContainerHelper final {
// Hands out memory location for an element at the end of data structure.
void* Allocate(size_t size_of_actual_element_in_bytes);
- scoped_ptr<CharAllocator> data_;
+ std::unique_ptr<CharAllocator> data_;
DISALLOW_COPY_AND_ASSIGN(ListContainerHelper);
};
« no previous file with comments | « cc/base/list_container.h ('k') | cc/base/list_container_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698