Commit dcbc8144 authored by Becky Zhou's avatar Becky Zhou Committed by Commit Bot

[Dark] Don't use theme color on toolbar on dark mode

Bug: 958554
Change-Id: I7d8d78ed5b971d7d37630c93e320641b913d8e15
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1623537Reviewed-by: default avatarTheresa <twellington@chromium.org>
Commit-Queue: Becky Zhou <huayinz@chromium.org>
Cr-Commit-Position: refs/heads/master@{#662656}
parent ec6037bd
...@@ -113,6 +113,8 @@ public class TabThemeColorHelper extends EmptyTabObserver implements UserData { ...@@ -113,6 +113,8 @@ public class TabThemeColorHelper extends EmptyTabObserver implements UserData {
if (securityLevel == ConnectionSecurityLevel.DANGEROUS if (securityLevel == ConnectionSecurityLevel.DANGEROUS
|| securityLevel == ConnectionSecurityLevel.SECURE_WITH_POLICY_INSTALLED_CERT || securityLevel == ConnectionSecurityLevel.SECURE_WITH_POLICY_INSTALLED_CERT
|| (mTab.getActivity() != null && mTab.getActivity().isTablet()) || (mTab.getActivity() != null && mTab.getActivity().isTablet())
|| (mTab.getActivity() != null
&& mTab.getActivity().getNightModeStateProvider().isInNightMode())
|| mTab.isNativePage() || mTab.isShowingInterstitialPage() || mTab.isNativePage() || mTab.isShowingInterstitialPage()
|| themeColor == TabState.UNSPECIFIED_THEME_COLOR || mTab.isIncognito() || themeColor == TabState.UNSPECIFIED_THEME_COLOR || mTab.isIncognito()
|| mTab.isPreview()) { || mTab.isPreview()) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment