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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_section_container.mm

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: chrome/browser/ui/cocoa/autofill/autofill_section_container.mm
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_section_container.mm b/chrome/browser/ui/cocoa/autofill/autofill_section_container.mm
index 08ab7d0d8f3ede87b129c3a724fc1ab651c6e7f4..4b7ca826d419877de2a63825a381357f97391b84 100644
--- a/chrome/browser/ui/cocoa/autofill/autofill_section_container.mm
+++ b/chrome/browser/ui/cocoa/autofill/autofill_section_container.mm
@@ -73,8 +73,7 @@ void BreakSuggestionText(const string16& text,
// TODO(groby): This kind of logic should _really_ live on the controller.
bool ShouldOverwriteComboboxes(autofill::DialogSection section,
autofill::AutofillFieldType type) {
- using autofill::AutofillType;
- if (AutofillType(type).group() != AutofillType::CREDIT_CARD) {
+ if (autofill::AutofillType(type).group() != autofill::CREDIT_CARD) {
return false;
}
@@ -327,7 +326,7 @@ bool CompareInputRows(const autofill::DetailInput* input1,
autofill::AutofillFieldType fieldType =
[self fieldTypeForControl:popup];
if (autofill::AutofillType(fieldType).group() ==
- autofill::AutofillType::CREDIT_CARD) {
+ autofill::CREDIT_CARD) {
ui::ComboboxModel* model =
controller_->ComboboxModelForAutofillType(fieldType);
DCHECK(model);
« no previous file with comments | « chrome/browser/ui/autofill/data_model_wrapper.cc ('k') | chrome/browser/ui/views/autofill/autofill_dialog_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698