[OriginChip] Re-enable the chip if the text changes during an Update().

Note that the outcome now in the case where you click the chip and then the back button is that the Omnibox retains focus but the chip is shown.  We normally don't allow this but it's analogous to the non-origin-chip behavior in this case.

BUG=371684

Review URL: https://codereview.chromium.org/290623002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@271177 0039d316-1c4b-4281-b951-d872f2087c98
parent 62522c63
......@@ -229,6 +229,7 @@ void OmniboxViewViews::Update() {
if (model()->UpdatePermanentText()) {
// Something visibly changed. Re-enable URL replacement.
controller()->GetToolbarModel()->set_url_replacement_enabled(true);
controller()->GetToolbarModel()->set_origin_chip_enabled(true);
model()->UpdatePermanentText();
// Select all the new text if the user had all the old text selected, or if
......
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