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

Unified Diff: components/client_update_protocol/ecdsa.cc

Issue 1921973002: Convert //components/[a-e]* 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/client_update_protocol/ecdsa.h ('k') | components/client_update_protocol/ecdsa_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/client_update_protocol/ecdsa.cc
diff --git a/components/client_update_protocol/ecdsa.cc b/components/client_update_protocol/ecdsa.cc
index dbf67e0aa8828e14a837031176cd50e260b06ccc..dc41a73b5093334a2819075e5bf75ea4d9ef103e 100644
--- a/components/client_update_protocol/ecdsa.cc
+++ b/components/client_update_protocol/ecdsa.cc
@@ -6,7 +6,7 @@
#include "base/logging.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_piece.h"
#include "base/strings/string_util.h"
@@ -90,12 +90,12 @@ Ecdsa::Ecdsa(int key_version, const base::StringPiece& public_key)
Ecdsa::~Ecdsa() {}
-scoped_ptr<Ecdsa> Ecdsa::Create(int key_version,
- const base::StringPiece& public_key) {
+std::unique_ptr<Ecdsa> Ecdsa::Create(int key_version,
+ const base::StringPiece& public_key) {
DCHECK_GT(key_version, 0);
DCHECK(!public_key.empty());
- return make_scoped_ptr(new Ecdsa(key_version, public_key));
+ return base::WrapUnique(new Ecdsa(key_version, public_key));
}
void Ecdsa::SignRequest(const base::StringPiece& request_body,
« no previous file with comments | « components/client_update_protocol/ecdsa.h ('k') | components/client_update_protocol/ecdsa_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698