[1.11.x] Do not immediately expire sync v1 infobar about v2 #6070
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We were relying on the base implementation. Possibly i don't understand how that works because I had assumed that it would only expire the infobar after a change of site, not a New Tab or resurrecting a tab on browser restart. But in release (and frustratingly not on local builds) that's not the case - the infobar was immediately dismissing. So, change the logic to an info bar which does not automatically expire for the active tab.
Resolves brave/brave-browser#10621
Submitter Checklist:
npm run lint
)git rebase master
(if needed).git rebase -i
to squash commits (if needed).Test Plan:
Reviewer Checklist:
After-merge Checklist:
changes has landed on.