| Index: chrome/android/java/src/org/chromium/chrome/browser/util/ColorUtils.java
|
| diff --git a/chrome/android/java/src/org/chromium/chrome/browser/util/ColorUtils.java b/chrome/android/java/src/org/chromium/chrome/browser/util/ColorUtils.java
|
| index d6c031feb91279a4b6f86a7c6820abbdfc11f5f4..2605a86907b9bf31ac16d8580b26e964af9bbc8b 100644
|
| --- a/chrome/android/java/src/org/chromium/chrome/browser/util/ColorUtils.java
|
| +++ b/chrome/android/java/src/org/chromium/chrome/browser/util/ColorUtils.java
|
| @@ -55,13 +55,11 @@ public class ColorUtils {
|
| /**
|
| * @return The base color for the textbox given a toolbar background color.
|
| */
|
| - public static int getTextBoxColorForToolbarBackground(Resources res, Tab tab, int color) {
|
| + public static int getTextBoxColorForToolbarBackground(Resources res, boolean isNtp, int color) {
|
| if (shouldUseOpaqueTextboxBackground(color)) {
|
| // NTP should have no visible textbox in the toolbar, so just return the toolbar's
|
| // background color.
|
| - if (tab.getNativePage() instanceof NewTabPage) {
|
| - return ApiCompatibilityUtils.getColor(res, R.color.ntp_bg);
|
| - }
|
| + if (isNtp) return ApiCompatibilityUtils.getColor(res, R.color.ntp_bg);
|
|
|
| return Color.WHITE;
|
| }
|
|
|