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

Unified Diff: components/client_update_protocol/ecdsa.h

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
Index: components/client_update_protocol/ecdsa.h
diff --git a/components/client_update_protocol/ecdsa.h b/components/client_update_protocol/ecdsa.h
index 3164315ed053323d4ced00c2d0f1eb25fbf57f03..889a396e2b450ea5be827ff2d3797577ea6f663e 100644
--- a/components/client_update_protocol/ecdsa.h
+++ b/components/client_update_protocol/ecdsa.h
@@ -7,10 +7,10 @@
#include <stdint.h>
+#include <memory>
#include <string>
#include <vector>
-#include "base/memory/scoped_ptr.h"
#include "base/strings/string_piece.h"
namespace client_update_protocol {
@@ -35,8 +35,8 @@ class Ecdsa {
// |key_version| must be non-negative. |public_key| is expected to be a
// DER-encoded ASN.1 SubjectPublicKeyInfo containing an ECDSA public key.
// Returns a NULL pointer on failure.
- static scoped_ptr<Ecdsa> Create(int key_version,
- const base::StringPiece& public_key);
+ static std::unique_ptr<Ecdsa> Create(int key_version,
+ const base::StringPiece& public_key);
// Generates freshness/authentication data for an outgoing ping.
// |request_body| contains the body of the ping in UTF-8. On return,
« no previous file with comments | « components/certificate_transparency/log_proof_fetcher_unittest.cc ('k') | components/client_update_protocol/ecdsa.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698