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

Unified Diff: net/tools/flip_server/mem_cache.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/flip_server/mem_cache.h ('k') | net/tools/flip_server/mem_cache_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/tools/flip_server/mem_cache.cc
diff --git a/net/tools/flip_server/mem_cache.cc b/net/tools/flip_server/mem_cache.cc
index 15c4f79aea9d876839af93143eb4e710226fd331..dae5d4026bc8f8a9bd261fec4c37877b0f2f7e5e 100644
--- a/net/tools/flip_server/mem_cache.cc
+++ b/net/tools/flip_server/mem_cache.cc
@@ -16,6 +16,7 @@
#include <map>
#include <string>
+#include "base/memory/ptr_util.h"
#include "base/strings/string_util.h"
#include "net/tools/balsa/balsa_frame.h"
#include "net/tools/balsa/balsa_headers.h"
@@ -230,7 +231,7 @@ void MemoryCache::InsertFile(FileData* file_data) {
it->second.reset(file_data);
} else {
files_.insert(
- std::make_pair(file_data->filename(), make_scoped_ptr(file_data)));
+ std::make_pair(file_data->filename(), base::WrapUnique(file_data)));
}
}
« no previous file with comments | « net/tools/flip_server/mem_cache.h ('k') | net/tools/flip_server/mem_cache_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698