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

Unified Diff: chrome/browser/android/compositor/layer/tab_layer.cc

Issue 1268483004: Plumb the anonymize rect color to toolbar_layer from Tab#getThemeColor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tabHasThemeColor
Patch Set: Renamed BrandColorUtils in implementation Created 5 years, 4 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/browser/android/compositor/layer/tab_layer.cc
diff --git a/chrome/browser/android/compositor/layer/tab_layer.cc b/chrome/browser/android/compositor/layer/tab_layer.cc
index a935f627e71f80bf2f004af513afd949d218df2f..245a52daa172de1835bf48c74eb226a3cd0de402 100644
--- a/chrome/browser/android/compositor/layer/tab_layer.cc
+++ b/chrome/browser/android/compositor/layer/tab_layer.cc
@@ -96,6 +96,7 @@ void TabLayer::SetProperties(int id,
float view_height,
bool show_toolbar,
bool anonymize_toolbar,
+ int toolbar_textbox_background_color,
float toolbar_alpha,
float toolbar_y_offset,
float side_border_scale,
@@ -182,7 +183,7 @@ void TabLayer::SetProperties(int id,
// TODO(kkimlabs): Tab switcher doesn't show the progress bar.
toolbar_layer_->PushResource(toolbar_resource, anonymize_toolbar,
- incognito_, false, 1.f);
+ toolbar_textbox_background_color, false, 1.f);
toolbar_layer_->UpdateProgressBar(0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
if (show_toolbar && !back_visible)
« no previous file with comments | « chrome/browser/android/compositor/layer/tab_layer.h ('k') | chrome/browser/android/compositor/layer/toolbar_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698