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

Unified Diff: components/autofill/core/browser/personal_data_manager.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/core/browser/personal_data_manager.cc
diff --git a/components/autofill/core/browser/personal_data_manager.cc b/components/autofill/core/browser/personal_data_manager.cc
index 2de59f64c274f807f7b877e4426c5228c8e045f2..a564baa7c5fcdd9d9f51c19c5867c5a0f900abb5 100644
--- a/components/autofill/core/browser/personal_data_manager.cc
+++ b/components/autofill/core/browser/personal_data_manager.cc
@@ -371,7 +371,7 @@ void PersonalDataManager::RemoveObserver(
bool PersonalDataManager::ImportFormData(
const FormStructure& form,
bool should_return_local_card,
- scoped_ptr<CreditCard>* imported_credit_card) {
+ std::unique_ptr<CreditCard>* imported_credit_card) {
// We try the same |form| for both credit card and address import/update.
// - ImportCreditCard may update an existing card, or fill
// |imported_credit_card| with an extracted card. See .h for details of
@@ -1387,7 +1387,7 @@ bool PersonalDataManager::ImportAddressProfileForSection(
bool PersonalDataManager::ImportCreditCard(
const FormStructure& form,
bool should_return_local_card,
- scoped_ptr<CreditCard>* imported_credit_card) {
+ std::unique_ptr<CreditCard>* imported_credit_card) {
DCHECK(!imported_credit_card->get());
// The candidate for credit card import. There are many ways for the candidate

Powered by Google App Engine
This is Rietveld 408576698