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

Side by Side Diff: components/autofill/core/browser/personal_data_manager.cc

Issue 347183005: autofill names - dont parse when calling SetRawInfo(FULL_NAME) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix android test expectation Created 6 years, 5 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 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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698