OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <algorithm> |
| 6 |
5 #include "chrome/browser/autofill/form_group.h" | 7 #include "chrome/browser/autofill/form_group.h" |
6 | 8 |
7 string16 FormGroup::GetPreviewText(const AutoFillType& type) const { | 9 string16 FormGroup::GetPreviewText(const AutoFillType& type) const { |
8 return GetFieldText(type); | 10 return GetFieldText(type); |
9 } | 11 } |
10 | 12 |
11 const string16 FormGroup::Label() const { return string16(); } | 13 const string16 FormGroup::Label() const { return string16(); } |
12 | 14 |
13 bool FormGroup::operator!=(const FormGroup& form_group) const { | 15 bool FormGroup::operator!=(const FormGroup& form_group) const { |
14 FieldTypeSet a, b, symmetric_difference; | 16 FieldTypeSet a, b, symmetric_difference; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 81 |
80 void FormGroup::OverwriteWith(const FormGroup& form_group) { | 82 void FormGroup::OverwriteWith(const FormGroup& form_group) { |
81 FieldTypeSet a;; | 83 FieldTypeSet a;; |
82 form_group.GetAvailableFieldTypes(&a); | 84 form_group.GetAvailableFieldTypes(&a); |
83 | 85 |
84 for (FieldTypeSet::const_iterator iter = a.begin(); iter != a.end(); ++iter) { | 86 for (FieldTypeSet::const_iterator iter = a.begin(); iter != a.end(); ++iter) { |
85 AutoFillType type(*iter); | 87 AutoFillType type(*iter); |
86 SetInfo(type, form_group.GetFieldText(type)); | 88 SetInfo(type, form_group.GetFieldText(type)); |
87 } | 89 } |
88 } | 90 } |
OLD | NEW |