Commit a1c2983e authored by isherman@chromium.org's avatar isherman@chromium.org

[Autofill] Pass struct by const-reference.

BUG=none
R=estade@chromium.org

Review URL: https://chromiumcodereview.appspot.com/16077005

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203094 0039d316-1c4b-4281-b951-d872f2087c98
parent d861d978
......@@ -658,7 +658,7 @@ bool FormStructure::IsAutocheckoutEnabled() const {
return !autocheckout_url_prefix_.empty();
}
bool FormStructure::ShouldSkipField(const FormFieldData field) const {
bool FormStructure::ShouldSkipField(const FormFieldData& field) const {
return (field.is_checkable || field.form_control_type == "password") &&
!IsAutocheckoutEnabled();
}
......
......@@ -202,7 +202,7 @@ class FormStructure {
bool IsAutocheckoutEnabled() const;
// Returns true if field should be skipped when talking to Autofill server.
bool ShouldSkipField(const FormFieldData field) const;
bool ShouldSkipField(const FormFieldData& field) const;
// Returns the minimal number of fillable fields required to start autofill.
size_t RequiredFillableFields() const;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment