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

Unified Diff: components/autofill/content/browser/wallet/full_wallet.cc

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/content/browser/wallet/full_wallet.cc
diff --git a/components/autofill/content/browser/wallet/full_wallet.cc b/components/autofill/content/browser/wallet/full_wallet.cc
index 84e864241bd9d4266cea025ea0931e96f1e90aa9..db7638271ee8bc4f64fe354ba4c8efffc05808bc 100644
--- a/components/autofill/content/browser/wallet/full_wallet.cc
+++ b/components/autofill/content/browser/wallet/full_wallet.cc
@@ -30,8 +30,8 @@ FullWallet::FullWallet(int expiration_month,
int expiration_year,
const std::string& iin,
const std::string& encrypted_rest,
- scoped_ptr<Address> billing_address,
- scoped_ptr<Address> shipping_address)
+ std::unique_ptr<Address> billing_address,
+ std::unique_ptr<Address> shipping_address)
: expiration_month_(expiration_month),
expiration_year_(expiration_year),
iin_(iin),
@@ -44,19 +44,18 @@ FullWallet::FullWallet(int expiration_month,
FullWallet::~FullWallet() {}
// static
-scoped_ptr<FullWallet>
- FullWallet::CreateFullWalletFromClearText(
- int expiration_month,
- int expiration_year,
- const std::string& pan,
- const std::string& cvn,
- scoped_ptr<Address> billing_address,
- scoped_ptr<Address> shipping_address) {
+std::unique_ptr<FullWallet> FullWallet::CreateFullWalletFromClearText(
+ int expiration_month,
+ int expiration_year,
+ const std::string& pan,
+ const std::string& cvn,
+ std::unique_ptr<Address> billing_address,
+ std::unique_ptr<Address> shipping_address) {
DCHECK(billing_address);
DCHECK(!pan.empty());
DCHECK(!cvn.empty());
- scoped_ptr<FullWallet> wallet(new FullWallet(
+ std::unique_ptr<FullWallet> wallet(new FullWallet(
expiration_month, expiration_year,
std::string(), // no iin -- clear text pan/cvn are set below.
std::string(), // no encrypted_rest -- clear text pan/cvn are set below.

Powered by Google App Engine
This is Rietveld 408576698