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

Unified Diff: components/network_hints/renderer/dns_prefetch_queue.h

Issue 1918083002: Convert //components/[f-n]* from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: … 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 | « components/net_log/net_log_temp_file_unittest.cc ('k') | components/network_time/network_time_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_.
« no previous file with comments | « components/net_log/net_log_temp_file_unittest.cc ('k') | components/network_time/network_time_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698