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

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

Issue 17392006: In components/autofill, move browser/ to core/browser/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to fix conflicts Created 7 years, 6 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 | « components/autofill/browser/email_field.h ('k') | components/autofill/browser/field_types.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/autofill/browser/email_field.cc
diff --git a/components/autofill/browser/email_field.cc b/components/autofill/browser/email_field.cc
deleted file mode 100644
index 7b1497af100a9dfc9eb0ebc7e473827c357f87ae..0000000000000000000000000000000000000000
--- a/components/autofill/browser/email_field.cc
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "components/autofill/browser/email_field.h"
-
-#include "base/strings/utf_string_conversions.h"
-#include "components/autofill/browser/autofill_regex_constants.h"
-#include "components/autofill/browser/autofill_scanner.h"
-#include "ui/base/l10n/l10n_util.h"
-
-namespace autofill {
-
-// static
-FormField* EmailField::Parse(AutofillScanner* scanner) {
- const AutofillField* field;
- if (ParseFieldSpecifics(scanner, UTF8ToUTF16(autofill::kEmailRe),
- MATCH_DEFAULT | MATCH_EMAIL, &field)) {
- return new EmailField(field);
- }
-
- return NULL;
-}
-
-EmailField::EmailField(const AutofillField* field) : field_(field) {
-}
-
-bool EmailField::ClassifyField(FieldTypeMap* map) const {
- return AddClassification(field_, EMAIL_ADDRESS, map);
-}
-
-} // namespace autofill
« no previous file with comments | « components/autofill/browser/email_field.h ('k') | components/autofill/browser/field_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698