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

Unified Diff: net/ssl/channel_id_store.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/ssl/channel_id_store.h ('k') | net/ssl/client_cert_store_nss.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/ssl/channel_id_store.cc
diff --git a/net/ssl/channel_id_store.cc b/net/ssl/channel_id_store.cc
index 1345da13cbb0a9311325b1feab6a81ef72910ab2..1d0078b968f38f7977423d8186d824618c1675b1 100644
--- a/net/ssl/channel_id_store.cc
+++ b/net/ssl/channel_id_store.cc
@@ -15,7 +15,7 @@ ChannelIDStore::ChannelID::ChannelID() {
ChannelIDStore::ChannelID::ChannelID(const std::string& server_identifier,
base::Time creation_time,
- scoped_ptr<crypto::ECPrivateKey> key)
+ std::unique_ptr<crypto::ECPrivateKey> key)
: server_identifier_(server_identifier),
creation_time_(creation_time),
key_(std::move(key)) {}
@@ -42,7 +42,7 @@ ChannelIDStore::ChannelID::~ChannelID() {}
void ChannelIDStore::InitializeFrom(const ChannelIDList& list) {
for (ChannelIDList::const_iterator i = list.begin(); i != list.end();
++i) {
- SetChannelID(scoped_ptr<ChannelID>(new ChannelID(*i)));
+ SetChannelID(std::unique_ptr<ChannelID>(new ChannelID(*i)));
}
}
« no previous file with comments | « net/ssl/channel_id_store.h ('k') | net/ssl/client_cert_store_nss.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698