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

Unified Diff: net/tools/cachetool/cachetool.cc

Issue 1893083002: Change scoped_ptr to std::unique_ptr in //net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: scopedptr-net-all: iwyu 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 | « net/tools/balsa/balsa_headers_test.cc ('k') | net/tools/content_decoder_tool/content_decoder_tool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/cachetool/cachetool.cc
diff --git a/net/tools/cachetool/cachetool.cc b/net/tools/cachetool/cachetool.cc
index c186400d9da01ede0fdff9c7b8be77fb6c572fed..50c2d8d01d1582c14666417d48a32ed346ca416e 100644
--- a/net/tools/cachetool/cachetool.cc
+++ b/net/tools/cachetool/cachetool.cc
@@ -3,12 +3,12 @@
// found in the LICENSE file.
#include <iostream>
+#include <memory>
#include "base/at_exit.h"
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "base/logging.h"
-#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/strings/string_number_conversions.h"
#include "net/base/io_buffer.h"
@@ -25,7 +25,7 @@ namespace {
// Print all of a cache's keys to stdout.
bool ListKeys(Backend* cache_backend) {
- scoped_ptr<Backend::Iterator> entry_iterator =
+ std::unique_ptr<Backend::Iterator> entry_iterator =
cache_backend->CreateIterator();
Entry* entry = nullptr;
net::TestCompletionCallback cb;
@@ -152,7 +152,7 @@ int main(int argc, char* argv[]) {
return 1;
}
- scoped_ptr<Backend> cache_backend;
+ std::unique_ptr<Backend> cache_backend;
net::TestCompletionCallback cb;
int rv = disk_cache::CreateCacheBackend(
net::DISK_CACHE, backend_type, cache_path, INT_MAX, false,
« no previous file with comments | « net/tools/balsa/balsa_headers_test.cc ('k') | net/tools/content_decoder_tool/content_decoder_tool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698