Commit d2dd1db0 authored by Orin Jaworski's avatar Orin Jaworski Committed by Commit Bot

[omnibox] Leave "= " in calculator result match contents

The "= " was getting removed from start of calculator answers
but now it will be left in when new answer layout is enabled.

Bug: 838733
Change-Id: Ice7bf2087cc51cd052744164018ff74f4aeb68a7
Reviewed-on: https://chromium-review.googlesource.com/1141126
Commit-Queue: Orin Jaworski <orinj@chromium.org>
Reviewed-by: default avatarJustin Donnelly <jdonnelly@chromium.org>
Cr-Commit-Position: refs/heads/master@{#576109}
parent 027fd170
...@@ -543,7 +543,8 @@ bool SearchSuggestionParser::ParseSuggestResults( ...@@ -543,7 +543,8 @@ bool SearchSuggestionParser::ParseSuggestResults(
// Additionally, on larger (non-phone) form factors, we don't want to // Additionally, on larger (non-phone) form factors, we don't want to
// display it in the suggestion contents either, because those devices // display it in the suggestion contents either, because those devices
// display a suggestion type icon that looks like a '='. // display a suggestion type icon that looks like a '='.
if (ui::GetDeviceFormFactor() != ui::DEVICE_FORM_FACTOR_PHONE) if (ui::GetDeviceFormFactor() != ui::DEVICE_FORM_FACTOR_PHONE &&
!OmniboxFieldTrial::IsNewAnswerLayoutEnabled())
match_contents.erase(0, 2); match_contents.erase(0, 2);
} }
if (ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_DESKTOP && if (ui::GetDeviceFormFactor() == ui::DEVICE_FORM_FACTOR_DESKTOP &&
......
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