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

Unified Diff: components/autofill/content/browser/autocheckout_manager.cc

Issue 21947003: [Autofill] Move FieldTypeGroup out of the AutofillType class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 4 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/autocheckout_manager.cc
diff --git a/components/autofill/content/browser/autocheckout_manager.cc b/components/autofill/content/browser/autocheckout_manager.cc
index c029ba824a38299d53c065dbefe62ab9d1b3fa23..01f656bd349aedc8cd9a2d7b8bba26c5c7f73455 100644
--- a/components/autofill/content/browser/autocheckout_manager.cc
+++ b/components/autofill/content/browser/autocheckout_manager.cc
@@ -142,9 +142,9 @@ void GetGoogleCookies(
}
bool IsBillingGroup(FieldTypeGroup group) {
- return group == AutofillType::ADDRESS_BILLING ||
- group == AutofillType::PHONE_BILLING ||
- group == AutofillType::NAME_BILLING;
+ return group == ADDRESS_BILLING ||
+ group == PHONE_BILLING ||
+ group == NAME_BILLING;
}
const char kTransactionIdNotSet[] = "transaction id not set";
@@ -361,7 +361,7 @@ void AutocheckoutManager::ReturnAutocheckoutData(
continue;
}
FieldTypeGroup group = AutofillType(type).group();
- if (group == AutofillType::CREDIT_CARD) {
+ if (group == CREDIT_CARD) {
credit_card_->SetRawInfo(type, value);
// TODO(dgwallinga): Find a way of cleanly deprecating CREDIT_CARD_NAME.
// code.google.com/p/chromium/issues/detail?id=263498
@@ -493,7 +493,7 @@ void AutocheckoutManager::SetValue(const AutofillField& field,
return;
}
- if (AutofillType(type).group() == AutofillType::CREDIT_CARD) {
+ if (AutofillType(type).group() == CREDIT_CARD) {
credit_card_->FillFormField(
field, 0, autofill_manager_->app_locale(), field_to_fill);
} else if (IsBillingGroup(AutofillType(type).group())) {
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_dialog_views.cc ('k') | components/autofill/content/browser/wallet/wallet_items.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698