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

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

Issue 9969080: Remove TOOLKIT_USES_GTK (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add gtk dependency to android linux host Created 8 years, 9 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/themes/theme_service.h ('k') | chrome/browser/ui/browser_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/themes/theme_service_factory.cc
diff --git a/chrome/browser/themes/theme_service_factory.cc b/chrome/browser/themes/theme_service_factory.cc
index b51073422157332043488d81cc1c6298885bf045..36b0c6bde3ba8f03553f00bc62e7e06f590e4d47 100644
--- a/chrome/browser/themes/theme_service_factory.cc
+++ b/chrome/browser/themes/theme_service_factory.cc
@@ -12,7 +12,7 @@
#include "chrome/browser/themes/theme_service.h"
#include "chrome/common/pref_names.h"
-#if defined(TOOLKIT_USES_GTK)
+#if defined(TOOLKIT_GTK)
#include "chrome/browser/ui/gtk/theme_service_gtk.h"
#endif
@@ -46,7 +46,7 @@ ThemeServiceFactory::~ThemeServiceFactory() {}
ProfileKeyedService* ThemeServiceFactory::BuildServiceInstanceFor(
Profile* profile) const {
ThemeService* provider = NULL;
-#if defined(TOOLKIT_USES_GTK)
+#if defined(TOOLKIT_GTK)
provider = new ThemeServiceGtk;
#else
provider = new ThemeService;
@@ -57,7 +57,7 @@ ProfileKeyedService* ThemeServiceFactory::BuildServiceInstanceFor(
}
void ThemeServiceFactory::RegisterUserPrefs(PrefService* prefs) {
-#if defined(TOOLKIT_USES_GTK)
+#if defined(TOOLKIT_GTK)
prefs->RegisterBooleanPref(prefs::kUsesSystemTheme,
ThemeServiceGtk::DefaultUsesSystemTheme(),
PrefService::UNSYNCABLE_PREF);
« no previous file with comments | « chrome/browser/themes/theme_service.h ('k') | chrome/browser/ui/browser_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698