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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java

Issue 2623023002: Remove //chrome as an embedder of blimp. (Closed)
Patch Set: One more rebase for good measure Created 3 years, 11 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
Index: chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java
index d8c03040715dfa228d56822a4acc828df2a68a8c..8facc5d228deac4a88dab801d3129aa08354494d 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/layouts/LayoutManagerDocument.java
@@ -259,17 +259,13 @@ public class LayoutManagerDocument extends LayoutManager
String url = tab.getUrl();
boolean isNativePage = url != null && url.startsWith(UrlConstants.CHROME_NATIVE_SCHEME);
int themeColor = tab.getThemeColor();
- // TODO(xingliu): Remove this override themeColor for Blimp tabs. See crbug.com/644774.
- if (tab.isBlimpTab() && tab.getBlimpContents() != null) {
- themeColor = tab.getBlimpContents().getThemeColor();
- }
- boolean canUseLiveTexture = tab.isBlimpTab()
- || tab.getContentViewCore() != null && !tab.isShowingSadTab() && !isNativePage;
+ boolean canUseLiveTexture =
+ tab.getContentViewCore() != null && !tab.isShowingSadTab() && !isNativePage;
boolean needsUpdate = layoutTab.initFromHost(tab.getBackgroundColor(), tab.shouldStall(),
canUseLiveTexture, themeColor, ColorUtils.getTextBoxColorForToolbarBackground(
- mContext.getResources(), tab, themeColor),
+ mContext.getResources(), tab, themeColor),
ColorUtils.getTextBoxAlphaForToolbarBackground(tab));
if (needsUpdate) requestUpdate();

Powered by Google App Engine
This is Rietveld 408576698