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

Unified Diff: components/autofill/browser/autofill_manager.cc

Issue 14564003: Make PersonalDataManager use GetCreditCards() (rather than using credit_cards_ directly) so Autofill (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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/browser/autofill_manager.cc
diff --git a/components/autofill/browser/autofill_manager.cc b/components/autofill/browser/autofill_manager.cc
index f2e29075dc8f350bd608e41f59109523ef35dc19..27df7e86bfdb7ef3da7fafc55a14d3750edc44a8 100644
--- a/components/autofill/browser/autofill_manager.cc
+++ b/components/autofill/browser/autofill_manager.cc
@@ -340,7 +340,8 @@ bool AutofillManager::OnFormSubmitted(const FormData& form,
// Only upload server statistics and UMA metrics if at least some local data
// is available to use as a baseline.
const std::vector<AutofillProfile*>& profiles = personal_data_->GetProfiles();
- const std::vector<CreditCard*>& credit_cards = personal_data_->credit_cards();
+ const std::vector<CreditCard*>& credit_cards =
+ personal_data_->GetCreditCards();
if (!profiles.empty() || !credit_cards.empty()) {
// Copy the profile and credit card data, so that it can be accessed on a
// separate thread.
@@ -981,7 +982,7 @@ bool AutofillManager::GetHost(RenderViewHost** host) const {
// No autofill data to return if the profiles are empty.
if (personal_data_->GetProfiles().empty() &&
- personal_data_->credit_cards().empty()) {
+ personal_data_->GetCreditCards().empty()) {
return false;
}
« no previous file with comments | « chrome/browser/ui/webui/options/autofill_options_handler.cc ('k') | components/autofill/browser/personal_data_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698