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

Unified Diff: crypto/rsa_private_key_openssl.cc

Issue 7342047: Cleanup base/stl_util (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed unneeded include + rebase Created 9 years, 5 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
« base/stl_util.h ('K') | « crypto/hmac_openssl.cc ('k') | crypto/sha2.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: crypto/rsa_private_key_openssl.cc
diff --git a/crypto/rsa_private_key_openssl.cc b/crypto/rsa_private_key_openssl.cc
index f39b7189a0059a8609814bd1f86edfaaca720e02..b9902a0e3d243ab2388aa4552a071610d8b27d59 100644
--- a/crypto/rsa_private_key_openssl.cc
+++ b/crypto/rsa_private_key_openssl.cc
@@ -10,7 +10,6 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
-#include "base/stl_util-inl.h"
#include "crypto/openssl_util.h"
namespace crypto {
@@ -41,7 +40,8 @@ bool ExportKey(EVP_PKEY* key,
if (!data || len < 0)
return false;
- STLAssignToVector(output, reinterpret_cast<const uint8*>(data), len);
+ std::vector<uint8> for_output(data, data + len);
+ output->swap(for_output);
return true;
}
« base/stl_util.h ('K') | « crypto/hmac_openssl.cc ('k') | crypto/sha2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698