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

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: subtle change Created 6 years, 6 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 613 matching lines...) Expand 10 before | Expand all | Expand 10 after
624 // next. 624 // next.
625 break; 625 break;
626 } 626 }
627 } 627 }
628 } 628 }
629 } 629 }
630 630
631 if (!field_is_autofilled) { 631 if (!field_is_autofilled) {
632 AutofillProfile::CreateInferredLabels( 632 AutofillProfile::CreateInferredLabels(
633 matched_profiles, &other_field_types, 633 matched_profiles, &other_field_types,
634 type.GetStorableType(), 1, labels); 634 type.GetStorableType(), 1, app_locale_, labels);
635 } else { 635 } else {
636 // No sub-labels for previously filled fields. 636 // No sub-labels for previously filled fields.
637 labels->resize(values->size()); 637 labels->resize(values->size());
638 } 638 }
639 639
640 // No icons for profile suggestions. 640 // No icons for profile suggestions.
641 icons->resize(values->size()); 641 icons->resize(values->size());
642 } 642 }
643 643
644 void PersonalDataManager::GetCreditCardSuggestions( 644 void PersonalDataManager::GetCreditCardSuggestions(
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after
1076 1076
1077 return std::string(); 1077 return std::string();
1078 } 1078 }
1079 1079
1080 void PersonalDataManager::EnabledPrefChanged() { 1080 void PersonalDataManager::EnabledPrefChanged() {
1081 default_country_code_.clear(); 1081 default_country_code_.clear();
1082 NotifyPersonalDataChanged(); 1082 NotifyPersonalDataChanged();
1083 } 1083 }
1084 1084
1085 } // namespace autofill 1085 } // namespace autofill
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698