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

Unified Diff: cc/base/contiguous_container.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/container_util.h ('k') | cc/base/contiguous_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/base/contiguous_container.h
diff --git a/cc/base/contiguous_container.h b/cc/base/contiguous_container.h
index 14f61c7401d3e7e12bdf9403f9a70b21fd936224..d032aa7f8c3bda9c36eb377c2308c02e8059b8be 100644
--- a/cc/base/contiguous_container.h
+++ b/cc/base/contiguous_container.h
@@ -6,12 +6,13 @@
#define CC_BASE_CONTIGUOUS_CONTAINER_H_
#include <stddef.h>
+
+#include <memory>
#include <utility>
#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/stl_util.h"
#include "cc/base/cc_export.h"
@@ -60,7 +61,7 @@ class CC_EXPORT ContiguousContainerBase {
Buffer* AllocateNewBufferForNextAllocation(size_t buffer_size);
- std::vector<scoped_ptr<Buffer>> buffers_;
+ std::vector<std::unique_ptr<Buffer>> buffers_;
size_t end_index_;
size_t max_object_size_;
« no previous file with comments | « cc/base/container_util.h ('k') | cc/base/contiguous_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698