OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/browser/form_group.h" | 5 #include "components/autofill/core/browser/form_group.h" |
6 | 6 |
7 namespace autofill { | 7 namespace autofill { |
8 | 8 |
9 void FormGroup::GetMatchingTypes(const base::string16& text, | 9 void FormGroup::GetMatchingTypes(const base::string16& text, |
10 const std::string& app_locale, | 10 const std::string& app_locale, |
11 FieldTypeSet* matching_types) const { | 11 FieldTypeSet* matching_types) const { |
12 if (text.empty()) { | 12 if (text.empty()) { |
13 matching_types->insert(EMPTY_TYPE); | 13 matching_types->insert(EMPTY_TYPE); |
14 return; | 14 return; |
15 } | 15 } |
(...skipping 27 matching lines...) Expand all Loading... |
43 } | 43 } |
44 | 44 |
45 bool FormGroup::SetInfo(AutofillFieldType type, | 45 bool FormGroup::SetInfo(AutofillFieldType type, |
46 const base::string16& value, | 46 const base::string16& value, |
47 const std::string& app_locale) { | 47 const std::string& app_locale) { |
48 SetRawInfo(type, value); | 48 SetRawInfo(type, value); |
49 return true; | 49 return true; |
50 } | 50 } |
51 | 51 |
52 } // namespace autofill | 52 } // namespace autofill |
OLD | NEW |