extensions: fix how-to-use logic in installed bubble
Before r723559 the logic was basically: if (action && (action->is_browser || action->is_page)) return !action->synthesized; if (HasOmniboxKeyword()) return true; return false; But the new logic was: if (!action) return false; if (action->is_browser || action->is_page) return !action->synthesized; return HasOmniboxKeyword(); which behaves differently when HasOmniboxKeyword() && !action: in the pre-r723559 logic that would return true but in the post-r723559 logic it returned false. This is repaired here by rewriting this function. Bug: 1047819 Change-Id: I86551a2c89ff39eedc0b9c29dcad7db50c006f2b Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2033988Reviewed-by:Devlin <rdevlin.cronin@chromium.org> Commit-Queue: Elly Fong-Jones <ellyjones@chromium.org> Cr-Commit-Position: refs/heads/master@{#738246}
Showing
Please register or sign in to comment