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

Unified Diff: chrome/browser/autofill/email_field.cc

Issue 7585020: Remove Autofill support for the ECML standard, as it is virtually unused. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove ECML files from the repository Created 9 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
« no previous file with comments | « chrome/browser/autofill/email_field.h ('k') | chrome/browser/autofill/form_field.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autofill/email_field.cc
diff --git a/chrome/browser/autofill/email_field.cc b/chrome/browser/autofill/email_field.cc
index f2f0aab7bf63dccff48d03cfc032f491f9df86c9..92fe938e461fd3d83d8236491293ad523bf2b531 100644
--- a/chrome/browser/autofill/email_field.cc
+++ b/chrome/browser/autofill/email_field.cc
@@ -4,23 +4,15 @@
#include "chrome/browser/autofill/email_field.h"
-#include "chrome/browser/autofill/autofill_ecml.h"
#include "chrome/browser/autofill/autofill_scanner.h"
#include "grit/autofill_resources.h"
#include "ui/base/l10n/l10n_util.h"
-using autofill::GetEcmlPattern;
-
// static
-FormField* EmailField::Parse(AutofillScanner* scanner, bool is_ecml) {
- string16 pattern;
- if (is_ecml)
- pattern = GetEcmlPattern(kEcmlShipToEmail, kEcmlBillToEmail, '|');
- else
- pattern = l10n_util::GetStringUTF16(IDS_AUTOFILL_EMAIL_RE);
-
+FormField* EmailField::Parse(AutofillScanner* scanner) {
const AutofillField* field;
- if (ParseFieldSpecifics(scanner, pattern,
+ if (ParseFieldSpecifics(scanner,
+ l10n_util::GetStringUTF16(IDS_AUTOFILL_EMAIL_RE),
MATCH_DEFAULT | MATCH_EMAIL, &field)) {
return new EmailField(field);
}
« no previous file with comments | « chrome/browser/autofill/email_field.h ('k') | chrome/browser/autofill/form_field.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698