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

Unified Diff: components/autofill/core/browser/crypto/rc4_decryptor.h

Issue 1859453002: components/autofill: scoped_ptr -> unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed 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/autofill/core/browser/crypto/rc4_decryptor.h
diff --git a/components/autofill/core/browser/crypto/rc4_decryptor.h b/components/autofill/core/browser/crypto/rc4_decryptor.h
index 3d24bca88899a4e01d79b53fa76db9b9daf494b7..4598274fc2ed0740dcb9fea7ebed3d2a12a14bc8 100644
--- a/components/autofill/core/browser/crypto/rc4_decryptor.h
+++ b/components/autofill/core/browser/crypto/rc4_decryptor.h
@@ -8,8 +8,8 @@
#include <stdint.h>
#include <string.h>
+#include <memory>
#include <string>
-#include "base/memory/scoped_ptr.h"
namespace autofill {
@@ -38,7 +38,7 @@ class RC4Decryptor {
std::wstring Run(const std::wstring& data) {
int data_size = data.length() * sizeof(wchar_t);
- scoped_ptr<wchar_t[]> buffer(new wchar_t[data.length() + 1]);
+ std::unique_ptr<wchar_t[]> buffer(new wchar_t[data.length() + 1]);
memset(buffer.get(), 0, (data.length() + 1) * sizeof(wchar_t));
memcpy(buffer.get(), data.c_str(), data_size);
« no previous file with comments | « components/autofill/core/browser/credit_card_field_unittest.cc ('k') | components/autofill/core/browser/email_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698