| Index: chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm
|
| diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm
|
| index 541d5f59177b2b7e7fcfc4cc219828ac80a31393..4eee108af4acdd0bcbb0a4e5fac30fc2cc8d158a 100644
|
| --- a/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm
|
| +++ b/chrome/browser/ui/cocoa/omnibox/omnibox_popup_cell.mm
|
| @@ -268,14 +268,6 @@ NSAttributedString* CreateAnswerString(const base::string16& text,
|
| return result.autorelease();
|
| }
|
|
|
| -int ParseNumLines(const SuggestionAnswer::TextFields& text_fields) {
|
| - for (const SuggestionAnswer::TextField& text_field : text_fields) {
|
| - if (text_field.has_num_lines() && text_field.num_lines() > 1)
|
| - return text_field.num_lines();
|
| - }
|
| - return 1;
|
| -}
|
| -
|
| NSAttributedString* CreateAnswerLine(const SuggestionAnswer::ImageLine& line,
|
| BOOL is_dark_theme) {
|
| base::scoped_nsobject<NSMutableAttributedString> answer_string(
|
| @@ -444,7 +436,7 @@ NSAttributedString* CreateClassifiedAttributedString(
|
| [CreateAnswerLine(match.answer->first_line(), isDarkTheme) retain];
|
| description_ =
|
| [CreateAnswerLine(match.answer->second_line(), isDarkTheme) retain];
|
| - max_lines_ = ParseNumLines(match.answer->second_line().text_fields());
|
| + max_lines_ = match.answer->SecondLineSize();
|
| } else {
|
| contents_ = [CreateClassifiedAttributedString(
|
| match.contents, ContentTextColor(isDarkTheme), match.contents_class,
|
|
|