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

Unified Diff: chrome/browser/themes/theme_service.cc

Issue 17494005: linux_aura: Three fixes for switching themes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 7 years, 6 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/themes/theme_service.cc
diff --git a/chrome/browser/themes/theme_service.cc b/chrome/browser/themes/theme_service.cc
index 6a90368a5a7e97893674500be6a4c185bdde5031..49a39666b3a79a6cbfaed8f242b72641724bf082 100644
--- a/chrome/browser/themes/theme_service.cc
+++ b/chrome/browser/themes/theme_service.cc
@@ -32,10 +32,6 @@
#include "ui/base/win/shell.h"
#endif
-#if defined(USE_AURA) && !defined(USE_ASH) && defined(OS_LINUX)
-#include "ui/linux_ui/linux_ui.h"
-#endif
-
using content::BrowserThread;
using content::UserMetricsAction;
using extensions::Extension;
@@ -108,12 +104,6 @@ gfx::Image ThemeService::GetImageNamed(int id) const {
if (theme_pack_.get())
image = theme_pack_->GetImageNamed(id);
-#if defined(USE_AURA) && !defined(USE_ASH) && defined(OS_LINUX)
- const ui::LinuxUI* linux_ui = ui::LinuxUI::instance();
- if (image.IsEmpty() && linux_ui)
- image = linux_ui->GetThemeImageNamed(id);
-#endif
-
if (image.IsEmpty())
image = rb_.GetNativeImageNamed(id);
@@ -136,12 +126,6 @@ SkColor ThemeService::GetColor(int id) const {
if (theme_pack_.get() && theme_pack_->GetColor(id, &color))
return color;
-#if defined(USE_AURA) && !defined(USE_ASH) && defined(OS_LINUX)
- const ui::LinuxUI* linux_ui = ui::LinuxUI::instance();
- if (linux_ui && linux_ui->GetColor(id, &color))
- return color;
-#endif
-
// For backward compat with older themes, some newer colors are generated from
// older ones if they are missing.
switch (id) {

Powered by Google App Engine
This is Rietveld 408576698