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

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

Issue 11000016: Move forms/ out of webkit/. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Response to review Created 8 years, 2 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/autofill/select_control_handler.cc
diff --git a/chrome/browser/autofill/select_control_handler.cc b/chrome/browser/autofill/select_control_handler.cc
index 682ebff7b5422ec7ca55ac604cc165af2be4301b..d602911239440bd9e10bb076d33ef6730e790bdf 100644
--- a/chrome/browser/autofill/select_control_handler.cc
+++ b/chrome/browser/autofill/select_control_handler.cc
@@ -13,7 +13,7 @@
#include "chrome/browser/autofill/autofill_country.h"
#include "chrome/browser/autofill/autofill_profile.h"
#include "chrome/browser/autofill/form_group.h"
-#include "webkit/forms/form_field.h"
+#include "chrome/common/form_field_data.h"
namespace {
@@ -120,7 +120,7 @@ const char* const kMonthsNumeric[] = {
// Returns true if the value was successfully set, meaning |value| was found in
// the list of select options in |field|.
bool SetSelectControlValue(const string16& value,
- webkit::forms::FormField* field) {
+ FormFieldData* field) {
string16 value_lowercase = StringToLowerASCII(value);
DCHECK_EQ(field->option_values.size(), field->option_contents.size());
@@ -136,7 +136,7 @@ bool SetSelectControlValue(const string16& value,
}
bool FillStateSelectControl(const string16& value,
- webkit::forms::FormField* field) {
+ FormFieldData* field) {
string16 abbrev, full;
if (value.size() < 4U) {
abbrev = value;
@@ -157,7 +157,7 @@ bool FillStateSelectControl(const string16& value,
}
bool FillCountrySelectControl(const FormGroup& form_group,
- webkit::forms::FormField* field) {
+ FormFieldData* field) {
const AutofillProfile& profile =
static_cast<const AutofillProfile&>(form_group);
std::string country_code = profile.CountryCode();
@@ -180,7 +180,7 @@ bool FillCountrySelectControl(const FormGroup& form_group,
}
bool FillExpirationMonthSelectControl(const string16& value,
- webkit::forms::FormField* field) {
+ FormFieldData* field) {
int index = 0;
if (!base::StringToInt(value, &index) ||
index <= 0 ||
@@ -200,7 +200,7 @@ namespace autofill {
void FillSelectControl(const FormGroup& form_group,
AutofillFieldType type,
- webkit::forms::FormField* field) {
+ FormFieldData* field) {
DCHECK(field);
DCHECK_EQ(ASCIIToUTF16("select-one"), field->form_control_type);
DCHECK_EQ(field->option_values.size(), field->option_contents.size());
« no previous file with comments | « chrome/browser/autofill/select_control_handler.h ('k') | chrome/browser/autofill/select_control_handler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698