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

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

Issue 2163393003: Tab switcher theme colors no longer behind flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 c016d7877688fc8d3aca4c606b24e7817241464e..3d570f4135e9be229a2b12c306b41cf00c54b47a 100644
--- a/chrome/browser/android/compositor/layer/tab_layer.cc
+++ b/chrome/browser/android/compositor/layer/tab_layer.cc
@@ -4,8 +4,6 @@
#include "chrome/browser/android/compositor/layer/tab_layer.h"
-#include "base/base_switches.h"
-#include "base/command_line.h"
#include "base/i18n/rtl.h"
#include "base/memory/ptr_util.h"
#include "cc/layers/layer.h"
@@ -19,7 +17,6 @@
#include "chrome/browser/android/compositor/layer/toolbar_layer.h"
#include "chrome/browser/android/compositor/layer_title_cache.h"
#include "chrome/browser/android/compositor/tab_content_manager.h"
-#include "chrome/common/chrome_switches.h"
#include "content/public/browser/android/compositor.h"
#include "ui/android/resources/resource_manager.h"
#include "ui/base/l10n/l10n_util_android.h"
@@ -482,17 +479,10 @@ void TabLayer::SetProperties(int id,
front_border_->SetOpacity(border_alpha);
front_border_->SetNearestNeighbor(toolbar_visible);
- int tab_switcher_color = default_theme_color;
-
- // Colorize the tab decoration if enabled.
- if (tab_switcher_themes_enabled_) {
- tab_switcher_color = toolbar_background_color;
- }
-
if (toolbar_background_color != toolbar_background_color_) {
toolbar_background_color_ = toolbar_background_color;
front_border_->SetFilters(
- *makeSolidColorFilter(tab_switcher_color).get());
+ *makeSolidColorFilter(toolbar_background_color).get());
}
}
@@ -663,7 +653,6 @@ TabLayer::TabLayer(bool incognito,
: incognito_(incognito),
toolbar_background_color_(0),
close_button_color_(0),
- tab_switcher_themes_enabled_(false),
resource_manager_(resource_manager),
layer_title_cache_(layer_title_cache),
layer_(cc::Layer::Create()),
@@ -701,10 +690,6 @@ TabLayer::TabLayer(bool incognito,
back_logo_->SetIsDrawable(true);
front_border_->SetFillCenter(false);
-
- tab_switcher_themes_enabled_ =
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableTabSwitcherThemeColors);
}
TabLayer::~TabLayer() {

Powered by Google App Engine
This is Rietveld 408576698