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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java

Issue 2315953002: Add theme color for Blimp on Android. (Closed)
Patch Set: Added comment on the color. Created 4 years, 3 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 | « blimp/client/public/android/java/src/org/chromium/blimp_public/contents/BlimpContents.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/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
« no previous file with comments | « blimp/client/public/android/java/src/org/chromium/blimp_public/contents/BlimpContents.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698