Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1069)

Issue 1634083002: Ensure all infobars disappear when navigating between pages with infobars. (Closed)

Created:
4 years, 11 months ago by newt (away)
Modified:
4 years, 11 months ago
Reviewers:
gone
CC:
chromium-reviews, dfalcantara+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure all infobars disappear when navigating between pages with infobars. Previously, when navigating from one page with 3+ infobars to another page with infobars, the animation would show only one or two infobars hiding then one or two infobars appearing, even though all the existing infobars should disappear, then all the new infobars should appear. To the user, it appeared as if some of the new infobars had been there all along (peeking up in the back), which is confusing and wrong. This strange behavior was caused by the logic for deciding when to show a hiding or appearing animation. This logic didn't associate a particular infobar with a particular view; it just ensured that the number of views matched the number of infobars. So, if infobars were removed and then new infobars were quickly added, there would be fewer animations than expected. The new code explicitly associates an infobar with each view, so if all the infobars are removed and then several new ones added, the animations will reflect that correctly. BUG=396223 Committed: https://crrev.com/ee701bbdcafe290b5961cdf98ebf366af27c3890 Cr-Commit-Position: refs/heads/master@{#371635}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -72 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarContainerLayout.java View 11 chunks +51 lines, -71 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/infobar/InfoBarWrapper.java View 2 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 8 (3 generated)
newt (away)
PTAL p.s. To see the broken behavior that this CL is fixing, load your infobar ...
4 years, 11 months ago (2016-01-26 03:45:06 UTC) #2
gone
lgtm
4 years, 11 months ago (2016-01-26 22:02:27 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1634083002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1634083002/1
4 years, 11 months ago (2016-01-26 22:44:57 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 11 months ago (2016-01-26 23:41:31 UTC) #6
commit-bot: I haz the power
4 years, 11 months ago (2016-01-26 23:42:30 UTC) #8
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ee701bbdcafe290b5961cdf98ebf366af27c3890
Cr-Commit-Position: refs/heads/master@{#371635}

Powered by Google App Engine
This is Rietveld 408576698