Commit 2b50d655 authored by Caitlin Fischer's avatar Caitlin Fischer Committed by Commit Bot

[Autofill] Improved label and additional_label comment.

Change-Id: I4d0d15aef5a0596cf9da45609a00645fbe1168bd
Reviewed-on: https://chromium-review.googlesource.com/c/1482555Reviewed-by: default avatarFabio Tirelo <ftirelo@chromium.org>
Reviewed-by: default avatarTommy Martino <tmartino@chromium.org>
Commit-Queue: Caitlin Fischer <caitlinfischer@google.com>
Cr-Commit-Position: refs/heads/master@{#635797}
parent 46739178
......@@ -1170,8 +1170,10 @@ std::vector<Suggestion> PersonalDataManager::GetProfileSuggestions(
&labels);
DCHECK_EQ(unique_suggestions.size(), labels.size());
for (size_t i = 0; i < labels.size(); i++) {
// A suggestion's label has one line of disambiguating information to show
// to the user. However, when the two-line suggestion display experiment is
// enabled on desktop, label is replaced by additional label.
unique_suggestions[i].label = labels[i];
// Used when two-line display is enabled.
unique_suggestions[i].additional_label = labels[i];
}
......@@ -2077,7 +2079,7 @@ std::vector<Suggestion> PersonalDataManager::GetSuggestionsForCards(
suggestion->label = credit_card->NetworkOrBankNameAndLastFourDigits();
#else
suggestion->label = credit_card->ObfuscatedLastFourDigits();
// Ad the card number with expiry information in the additional
// Add the card number with expiry information in the additional
// label portion so that we an show it when two-line display is
// enabled.
suggestion->additional_label =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment