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

Side by Side Diff: components/autofill/common/form_field_data.cc

Issue 12721004: Autofill:Autocomplete: Enable autocheckout of input elements of type password. This will support fi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/autofill/common/form_field_data.h" 5 #include "components/autofill/common/form_field_data.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/utf_string_conversions.h" 8 #include "base/utf_string_conversions.h"
9 9
10 FormFieldData::FormFieldData() 10 FormFieldData::FormFieldData()
11 : max_length(0), 11 : max_length(0),
12 is_autofilled(false), 12 is_autofilled(false),
13 is_checked(false), 13 is_checked(false),
14 is_checkable(false), 14 is_checkable(false),
15 is_password_field(false),
15 is_focusable(false), 16 is_focusable(false),
16 should_autocomplete(true) { 17 should_autocomplete(true) {
17 } 18 }
18 19
19 FormFieldData::~FormFieldData() { 20 FormFieldData::~FormFieldData() {
20 } 21 }
21 22
22 bool FormFieldData::operator==(const FormFieldData& field) const { 23 bool FormFieldData::operator==(const FormFieldData& field) const {
23 // A FormFieldData stores a value, but the value is not part of the identity 24 // A FormFieldData stores a value, but the value is not part of the identity
24 // of the field, so we don't want to compare the values. 25 // of the field, so we don't want to compare the values.
(...skipping 28 matching lines...) Expand all
53 << field.autocomplete_attribute 54 << field.autocomplete_attribute
54 << " " 55 << " "
55 << field.max_length 56 << field.max_length
56 << " " 57 << " "
57 << (field.is_autofilled ? "true" : "false") 58 << (field.is_autofilled ? "true" : "false")
58 << " " 59 << " "
59 << (field.is_checked ? "true" : "false") 60 << (field.is_checked ? "true" : "false")
60 << " " 61 << " "
61 << (field.is_checkable ? "true" : "false") 62 << (field.is_checkable ? "true" : "false")
62 << " " 63 << " "
64 << (field.is_password_field ? "true" : "false")
65 << " "
63 << (field.is_focusable ? "true" : "false") 66 << (field.is_focusable ? "true" : "false")
64 << " " 67 << " "
65 << (field.should_autocomplete ? "true" : "false"); 68 << (field.should_autocomplete ? "true" : "false");
66 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698