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

Unified Diff: chrome/browser/ui/views/infobars/infobar_container_view.cc

Issue 2705763002: InfoBarContainerView: Redraws infobars on a native theme change (Closed)
Patch Set: Remove dependent Patchset Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/infobars/infobar_container_view.cc
diff --git a/chrome/browser/ui/views/infobars/infobar_container_view.cc b/chrome/browser/ui/views/infobars/infobar_container_view.cc
index a1e59e753b8e2ee5dc25ad63c5af5767e0a92c5b..c7adb7b87e8c3a84e5ab8448ca64b4e4e999bddb 100644
--- a/chrome/browser/ui/views/infobars/infobar_container_view.cc
+++ b/chrome/browser/ui/views/infobars/infobar_container_view.cc
@@ -133,3 +133,8 @@ void InfoBarContainerView::PlatformSpecificRemoveInfoBar(
infobars::InfoBar* infobar) {
RemoveChildView(static_cast<InfoBarView*>(infobar));
}
+
+void InfoBarContainerView::OnNativeThemeChanged(const ui::NativeTheme* theme) {
+ for (int i = 0; i < child_count(); ++i)
Peter Kasting 2017/02/18 01:26:20 Nit: Might want a comment noting what bit of code/
Tom (Use chromium acct) 2017/02/18 01:54:12 Done.
+ child_at(i)->SchedulePaint();
+}

Powered by Google App Engine
This is Rietveld 408576698