Add the ColorSchemeNativeThemeObserver on Mac
If certain flags are enabled, NativeThemeMac may return a different NativeTheme instance for NativeTheme::GetInstanceForWeb(). This will cause NativeTheme::GetInstanceForWeb() on Mac to be out of sync in terms of dark mode and high contrast. To fix this, NativeTheme::GetInstanceForWeb() is added as an observer of NativeTheme::GetInstanceForNativeUi() in these cases. Bug: 970285 Change-Id: I832d182647f81491a761a071bc5633c2efdeedb0 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1834028Reviewed-by:Elly Fong-Jones <ellyjones@chromium.org> Commit-Queue: Alison Maher <almaher@microsoft.com> Cr-Commit-Position: refs/heads/master@{#702902}
Showing
Please register or sign in to comment