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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/util/ColorUtils.java

Issue 2862113003: [Home] Disable theme colors in toolbar (Closed)
Patch Set: jk Created 3 years, 7 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
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/toolbar/ToolbarPhone.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698