OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/core/browser/personal_data_manager.h" | 5 #include "components/autofill/core/browser/personal_data_manager.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <functional> | 8 #include <functional> |
9 #include <iterator> | 9 #include <iterator> |
10 | 10 |
(...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
608 // next. | 608 // next. |
609 break; | 609 break; |
610 } | 610 } |
611 } | 611 } |
612 } | 612 } |
613 } | 613 } |
614 | 614 |
615 if (!field_is_autofilled) { | 615 if (!field_is_autofilled) { |
616 AutofillProfile::CreateInferredLabels( | 616 AutofillProfile::CreateInferredLabels( |
617 matched_profiles, &other_field_types, | 617 matched_profiles, &other_field_types, |
618 type.GetStorableType(), 1, labels); | 618 type.GetStorableType(), 1, app_locale_, labels); |
619 } else { | 619 } else { |
620 // No sub-labels for previously filled fields. | 620 // No sub-labels for previously filled fields. |
621 labels->resize(values->size()); | 621 labels->resize(values->size()); |
622 } | 622 } |
623 | 623 |
624 // No icons for profile suggestions. | 624 // No icons for profile suggestions. |
625 icons->resize(values->size()); | 625 icons->resize(values->size()); |
626 } | 626 } |
627 | 627 |
628 void PersonalDataManager::GetCreditCardSuggestions( | 628 void PersonalDataManager::GetCreditCardSuggestions( |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1081 // Populates |auxiliary_profiles_|. | 1081 // Populates |auxiliary_profiles_|. |
1082 LoadAuxiliaryProfiles(record_metrics); | 1082 LoadAuxiliaryProfiles(record_metrics); |
1083 | 1083 |
1084 profiles_.insert(profiles_.end(), web_profiles_.begin(), web_profiles_.end()); | 1084 profiles_.insert(profiles_.end(), web_profiles_.begin(), web_profiles_.end()); |
1085 profiles_.insert( | 1085 profiles_.insert( |
1086 profiles_.end(), auxiliary_profiles_.begin(), auxiliary_profiles_.end()); | 1086 profiles_.end(), auxiliary_profiles_.begin(), auxiliary_profiles_.end()); |
1087 return profiles_; | 1087 return profiles_; |
1088 } | 1088 } |
1089 | 1089 |
1090 } // namespace autofill | 1090 } // namespace autofill |
OLD | NEW |