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

Unified Diff: chrome/browser/resources/options/browser_options.js

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.html ('k') | chrome/browser/themes/theme_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/options/browser_options.js
diff --git a/chrome/browser/resources/options/browser_options.js b/chrome/browser/resources/options/browser_options.js
index 45ee27ec547d62d421304b912427786acd3abe68..21567f68242eb601ab927e276a1e39472e73d35b 100644
--- a/chrome/browser/resources/options/browser_options.js
+++ b/chrome/browser/resources/options/browser_options.js
@@ -235,9 +235,9 @@ cr.define('options', function() {
chrome.send('coreOptionsUserMetricsAction', ['Import_ShowDlg']);
};
- if ($('themes-GTK-button')) {
- $('themes-GTK-button').onclick = function(event) {
- chrome.send('themesSetGTK');
+ if ($('themes-native-button')) {
+ $('themes-native-button').onclick = function(event) {
+ chrome.send('themesSetNative');
};
}
}
@@ -1114,9 +1114,10 @@ cr.define('options', function() {
'There should always be a current profile, but none found.');
},
- setGtkThemeButtonEnabled_: function(enabled) {
- if (!cr.isChromeOS && navigator.platform.match(/linux|BSD/i))
- $('themes-GTK-button').disabled = !enabled;
+ setNativeThemeButtonEnabled_: function(enabled) {
+ var button = $('themes-native-button');
+ if (button)
+ button.disabled = !enabled;
},
setThemesResetButtonEnabled_: function(enabled) {
@@ -1465,7 +1466,7 @@ cr.define('options', function() {
'setAutoOpenFileTypesDisplayed',
'setBluetoothState',
'setFontSize',
- 'setGtkThemeButtonEnabled',
+ 'setNativeThemeButtonEnabled',
'setHighContrastCheckboxState',
'setMetricsReportingCheckboxState',
'setMetricsReportingSettingVisibility',
« no previous file with comments | « chrome/browser/resources/options/browser_options.html ('k') | chrome/browser/themes/theme_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698