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

Unified Diff: components/autofill/core/browser/personal_data_manager.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/personal_data_manager.h
diff --git a/components/autofill/core/browser/personal_data_manager.h b/components/autofill/core/browser/personal_data_manager.h
index ce0014ddd7a7b60b65d3c992212f81b3e38af9e8..fd2dbefacf1d8ee2791482250792817c27e26028 100644
--- a/components/autofill/core/browser/personal_data_manager.h
+++ b/components/autofill/core/browser/personal_data_manager.h
@@ -11,7 +11,6 @@
#include "base/gtest_prod_util.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/observer_list.h"
#include "base/strings/string16.h"
@@ -100,7 +99,7 @@ class PersonalDataManager : public KeyedService,
// Returns |true| if sufficient address or credit card data was found.
bool ImportFormData(const FormStructure& form,
bool should_return_local_card,
- scoped_ptr<CreditCard>* imported_credit_card);
+ std::unique_ptr<CreditCard>* imported_credit_card);
// Called to indicate |data_model| was used (to fill in a form). Updates
// the database accordingly. Can invalidate |data_model|, particularly if
@@ -383,7 +382,7 @@ class PersonalDataManager : public KeyedService,
// new card to import, or having merged with an existing card.
bool ImportCreditCard(const FormStructure& form,
bool should_return_local_card,
- scoped_ptr<CreditCard>* imported_credit_card);
+ std::unique_ptr<CreditCard>* imported_credit_card);
// Functionally equivalent to GetProfiles(), but also records metrics if
// |record_metrics| is true. Metrics should be recorded when the returned
@@ -418,10 +417,10 @@ class PersonalDataManager : public KeyedService,
mutable bool has_logged_credit_card_count_;
// An observer to listen for changes to prefs::kAutofillEnabled.
- scoped_ptr<BooleanPrefMember> enabled_pref_;
+ std::unique_ptr<BooleanPrefMember> enabled_pref_;
// An observer to listen for changes to prefs::kAutofillWalletImportEnabled.
- scoped_ptr<BooleanPrefMember> wallet_enabled_pref_;
+ std::unique_ptr<BooleanPrefMember> wallet_enabled_pref_;
DISALLOW_COPY_AND_ASSIGN(PersonalDataManager);
};

Powered by Google App Engine
This is Rietveld 408576698