Revert "Fixed color bugs in CustomTabBarView"
This reverts commit a1342aa6. Reason for revert: Broke MSAN bots: https://ci.chromium.org/p/chromium/builders/ci/Linux%20MSan%20Tests/21649 https://ci.chromium.org/p/chromium/builders/ci/Linux%20ChromiumOS%20MSan%20Tests/17229 Stack trace from crash: ==29357==WARNING: MemorySanitizer: use-of-uninitialized-value #0 0x56541d07524c in views::Label::SetBackgroundColor(unsigned int) ./../../ui/views/controls/label.cc:141:7 #1 0x5654292ce540 in IconLabelBubbleView::OnThemeChanged() ./../../chrome/browser/ui/views/location_bar/icon_label_bubble_view.cc:308:12 #2 0x565429331693 in LocationIconView::UpdateTextVisibility(bool) ./../../chrome/browser/ui/views/location_bar/location_icon_view.cc:195:3 #3 0x56542932f4ff in LocationIconView::Update(bool) ./../../chrome/browser/ui/views/location_bar/location_icon_view.cc:214:3 #4 0x56541d29bb17 in views::View::PropagateAddNotifications(views::ViewHierarchyChangedDetails const&, bool) ./../../ui/views/view.cc:2326:5 #5 0x56541d29ba53 in views::View::PropagateAddNotifications(views::ViewHierarchyChangedDetails const&, bool) ./../../ui/views/view.cc:2322:14 #6 0x56541d2972cf in views::View::AddChildViewAtImpl(views::View*, int) ./../../ui/views/view.cc:2218:9 [...] Original change's description: > Fixed color bugs in CustomTabBarView > > Fixed CustomTabBarView to set and update its colors only once > attached to a widget, preventing the fallback to the default > NativeTheme. > > Updated CustomTabBarView to respond to theme changes. > > Removed the dependency on GetThemeProviderForProfile from > CustomTabBarView and from LocationBarView. > > Bug: None > Change-Id: If505b0bede8f112329dcef5f2a7aab9e67dcfd2e > Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1989085 > Commit-Queue: Thomas Lukaszewicz <tluk@chromium.org> > Reviewed-by: Peter Kasting <pkasting@chromium.org> > Cr-Commit-Position: refs/heads/master@{#729904} TBR=pkasting@chromium.org,tluk@chromium.org Change-Id: I768a90892980c5522075ed7cda38e2678b797552 No-Presubmit: true No-Tree-Checks: true No-Try: true Bug: None Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1994661Reviewed-by:Fabrice de Gans-Riberi <fdegans@chromium.org> Commit-Queue: Fabrice de Gans-Riberi <fdegans@chromium.org> Cr-Commit-Position: refs/heads/master@{#730020}
Showing
This diff is collapsed.
Please register or sign in to comment