Toolbar: Fix wrong location bar background color (2)
This CL fixes wrong theme color bugs still left in the toolbar. 1) There are situations when WebContents theme color hasn't changed but we still need to check if the overall top UI theme can change. For this, TabThemeColorHelper invokes TabObserver#onDidChangeThemeColor with either the current tab theme or the one from WebContents accordingly. 2) When in tab switcher, location bar model's |mPrimaryColor| should be updated when going back and forth between normal/incognito tab model. Added a new line doing this, since this is not automatically done the after the toolbar theme refactoring. Bug: 1157417, 1157433 Change-Id: Ib648d4ce10f6589eae54742631fc083edf0119f2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2599678 Commit-Queue: Jinsuk Kim <jinsukkim@chromium.org> Reviewed-by:Theresa <twellington@chromium.org> Cr-Commit-Position: refs/heads/master@{#838965}
Showing
Please register or sign in to comment