Index: chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
index aed2a38813d9f765ca133e032e47b8cbbf41da4e..edbaa1c0980a64a49dd6cdcdce10687735bf9045 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java |
@@ -1114,6 +1114,12 @@ public class Tab implements ViewGroup.OnHierarchyChangeListener, |
if (themeColor != 0 && !ColorUtils.isValidThemeColor(themeColor)) themeColor = 0; |
} |
+ // Apply theme color for Blimp tab. |
+ if (isBlimpTab() && getBlimpContents() != null) { |
+ themeColor = getBlimpContents().getThemeColor(); |
+ if (themeColor != 0 && !ColorUtils.isValidThemeColor(themeColor)) themeColor = 0; |
+ } |
+ |
// Do not apply the theme color if there are any security issues on the page. |
int securityLevel = getSecurityLevel(); |
if (securityLevel == ConnectionSecurityLevel.SECURITY_ERROR |