Index: components/network_hints/renderer/dns_prefetch_queue.h |
diff --git a/components/network_hints/renderer/dns_prefetch_queue.h b/components/network_hints/renderer/dns_prefetch_queue.h |
index 2e03f24e494974080ee641fa64f1ed6049c31e21..6f451eb15db603b40639d0c846ee8bf3e57fcf67 100644 |
--- a/components/network_hints/renderer/dns_prefetch_queue.h |
+++ b/components/network_hints/renderer/dns_prefetch_queue.h |
@@ -24,13 +24,13 @@ |
#ifndef COMPONENTS_NETWORK_HINTS_RENDERER_DNS_PREFETCH_QUEUE_H__ |
#define COMPONENTS_NETWORK_HINTS_RENDERER_DNS_PREFETCH_QUEUE_H__ |
-#include <string> |
- |
#include <stddef.h> |
#include <stdint.h> |
+#include <memory> |
+#include <string> |
+ |
#include "base/macros.h" |
-#include "base/memory/scoped_ptr.h" |
namespace network_hints { |
@@ -77,7 +77,8 @@ class DnsQueue { |
private: |
bool Validate(); // Checks that all internal data is valid. |
- const scoped_ptr<char[]> buffer_; // Circular buffer, plus extra char ('\0'). |
+ // Circular buffer, plus extra char ('\0'). |
+ const std::unique_ptr<char[]> buffer_; |
const BufferSize buffer_size_; // Size one smaller than allocated space. |
const BufferSize buffer_sentinel_; // Index of extra '\0' at end of buffer_. |