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

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: Rebase to tot 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
« no previous file with comments | « chrome/browser/resources/options/browser_options.js ('k') | chrome/browser/themes/theme_service_aurax11.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/themes/theme_service.cc
diff --git a/chrome/browser/themes/theme_service.cc b/chrome/browser/themes/theme_service.cc
index 2a65722554dcb1796affb17603ac258f38f020c0..e0502a2b8ec9bc643de006724ee828ece60ff4a7 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
-
#if defined(ENABLE_MANAGED_USERS)
#include "chrome/browser/managed_mode/managed_user_service.h"
#endif
@@ -121,12 +117,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);
@@ -157,12 +147,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) {
« no previous file with comments | « chrome/browser/resources/options/browser_options.js ('k') | chrome/browser/themes/theme_service_aurax11.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698