Disallow gtk theme on cros

BUG=chromium-os:15686
TEST=None

Review URL: http://codereview.chromium.org/6992084

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86727 0039d316-1c4b-4281-b951-d872f2087c98
parent 527089be
......@@ -291,8 +291,11 @@ GtkThemeService::~GtkThemeService() {
void GtkThemeService::Init(Profile* profile) {
registrar_.Init(profile->GetPrefs());
registrar_.Add(prefs::kUsesSystemTheme, this);
#if defined(OS_CHROMEOS)
use_gtk_ = false;
#else
use_gtk_ = profile->GetPrefs()->GetBoolean(prefs::kUsesSystemTheme);
#endif
ThemeService::Init(profile);
}
......@@ -367,7 +370,9 @@ void GtkThemeService::Observe(NotificationType type,
const NotificationDetails& details) {
if ((type == NotificationType::PREF_CHANGED) &&
(*Details<std::string>(details).ptr() == prefs::kUsesSystemTheme)) {
#if !defined(OS_CHROMEOS)
use_gtk_ = profile()->GetPrefs()->GetBoolean(prefs::kUsesSystemTheme);
#endif
} else {
ThemeService::Observe(type, source, details);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment