| Index: chrome/browser/autofill/autofill_profile.cc
|
| diff --git a/chrome/browser/autofill/autofill_profile.cc b/chrome/browser/autofill/autofill_profile.cc
|
| index 3aa8fbe34f7575f300c6fa397d219b2c4f681c03..f12b0f8790055457b4ae8f5a1861c90d8c5ff9c5 100644
|
| --- a/chrome/browser/autofill/autofill_profile.cc
|
| +++ b/chrome/browser/autofill/autofill_profile.cc
|
| @@ -205,6 +205,7 @@ string16 AutoFillProfile::PreviewSummary() const {
|
| return summary_format;
|
| }
|
|
|
| +// static
|
| bool AutoFillProfile::AdjustInferredLabels(
|
| std::vector<AutoFillProfile*>* profiles) {
|
| std::vector<string16> created_labels;
|
| @@ -222,6 +223,7 @@ bool AutoFillProfile::AdjustInferredLabels(
|
| return updated_labels;
|
| }
|
|
|
| +// static
|
| void AutoFillProfile::CreateInferredLabels(
|
| const std::vector<AutoFillProfile*>* profiles,
|
| std::vector<string16>* created_labels,
|
| @@ -375,6 +377,12 @@ void AutoFillProfile::CreateInferredLabels(
|
| }
|
| }
|
|
|
| +bool AutoFillProfile::IsEmpty() const {
|
| + FieldTypeSet types;
|
| + GetAvailableFieldTypes(&types);
|
| + return types.empty();
|
| +}
|
| +
|
| void AutoFillProfile::operator=(const AutoFillProfile& source) {
|
| label_ = source.label_;
|
| unique_id_ = source.unique_id_;
|
|
|