Commit 6da8af68 authored by Yue Zhang's avatar Yue Zhang Committed by Commit Bot

Tint NewTabButton(+) for tabgrid

Add tint for NewTabButton(+) in top tool bar when tabgrid is enabled.

Bug: 946290
Change-Id: I4e1ad838789b63720465f818294f82042b2a6475
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1559209Reviewed-by: default avatarMatthew Jones <mdjones@chromium.org>
Reviewed-by: default avatarYusuf Ozuysal <yusufo@chromium.org>
Commit-Queue: Yue Zhang <yuezhanggg@google.com>
Cr-Commit-Position: refs/heads/master@{#649653}
parent 0bbccac5
......@@ -18,6 +18,7 @@ import org.chromium.chrome.browser.ChromeFeatureList;
import org.chromium.chrome.browser.device.DeviceClassManager;
import org.chromium.chrome.browser.toolbar.IncognitoStateProvider.IncognitoStateObserver;
import org.chromium.chrome.browser.util.AccessibilityUtil;
import org.chromium.chrome.browser.util.FeatureUtilities;
import org.chromium.ui.base.DeviceFormFactor;
import org.chromium.ui.widget.ChromeImageButton;
......@@ -94,7 +95,9 @@ public class NewTabButton
DeviceFormFactor.isNonMultiDisplayContextOnTablet(getContext())
|| ((DeviceClassManager.enableAccessibilityLayout()
|| ChromeFeatureList.isEnabled(
ChromeFeatureList.HORIZONTAL_TAB_SWITCHER_ANDROID))
ChromeFeatureList.HORIZONTAL_TAB_SWITCHER_ANDROID)
|| FeatureUtilities.isTabGroupsAndroidEnabled()
|| FeatureUtilities.isGridTabSwitcherEnabled())
&& mIsIncognito);
ApiCompatibilityUtils.setImageTintList(
this, shouldUseLightMode ? mLightModeTint : mDarkModeTint);
......
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