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

Unified Diff: components/ownership/mock_owner_key_util.cc

Issue 1921923002: Convert //components/[o-t]* 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/ownership/mock_owner_key_util.h ('k') | components/ownership/owner_key_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ownership/mock_owner_key_util.cc
diff --git a/components/ownership/mock_owner_key_util.cc b/components/ownership/mock_owner_key_util.cc
index e00ef1c451da7c1c6272c3e5b156e284c11659ed..32ed7430fac050bec3bea571c398627c33e8b3c2 100644
--- a/components/ownership/mock_owner_key_util.cc
+++ b/components/ownership/mock_owner_key_util.cc
@@ -52,7 +52,8 @@ void MockOwnerKeyUtil::SetPublicKeyFromPrivateKey(
CHECK(key.ExportPublicKey(&public_key_));
}
-void MockOwnerKeyUtil::SetPrivateKey(scoped_ptr<crypto::RSAPrivateKey> key) {
+void MockOwnerKeyUtil::SetPrivateKey(
+ std::unique_ptr<crypto::RSAPrivateKey> key) {
crypto::EnsureNSSInit();
CHECK(key->ExportPublicKey(&public_key_));
« no previous file with comments | « components/ownership/mock_owner_key_util.h ('k') | components/ownership/owner_key_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698