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

Unified Diff: base/memory/discardable_memory_allocator.h

Issue 1852433005: Convert //base to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove redundant base:: prefix 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
Index: base/memory/discardable_memory_allocator.h
diff --git a/base/memory/discardable_memory_allocator.h b/base/memory/discardable_memory_allocator.h
index ea7947e1ccfe003bdd28bb6a4bd56e82bde0e565..ad73f0890d6cbe80b01c763f02c43a305aa3c161 100644
--- a/base/memory/discardable_memory_allocator.h
+++ b/base/memory/discardable_memory_allocator.h
@@ -7,8 +7,9 @@
#include <stddef.h>
+#include <memory>
+
#include "base/base_export.h"
-#include "base/memory/scoped_ptr.h"
namespace base {
class DiscardableMemory;
@@ -22,7 +23,7 @@ class BASE_EXPORT DiscardableMemoryAllocator {
// Ownership of |instance| remains with the caller.
static void SetInstance(DiscardableMemoryAllocator* allocator);
- virtual scoped_ptr<DiscardableMemory> AllocateLockedDiscardableMemory(
+ virtual std::unique_ptr<DiscardableMemory> AllocateLockedDiscardableMemory(
size_t size) = 0;
protected:

Powered by Google App Engine
This is Rietveld 408576698