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

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: 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/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..ed894304311f655e8450c61f88190fae8184c69c 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,9 @@ cr.define('options', function() {
'There should always be a current profile, but none found.');
},
- setGtkThemeButtonEnabled_: function(enabled) {
+ setNativeThemeButtonEnabled_: function(enabled) {
if (!cr.isChromeOS && navigator.platform.match(/linux|BSD/i))
Evan Stade 2013/06/20 22:24:35 can we just check if the button exists here instea
Elliot Glaysher 2013/06/21 17:58:45 I am not good with Javascript. Is this what you wa
Evan Stade 2013/06/21 21:40:52 yes
- $('themes-GTK-button').disabled = !enabled;
+ $('themes-Native-button').disabled = !enabled;
},
setThemesResetButtonEnabled_: function(enabled) {
@@ -1465,7 +1465,7 @@ cr.define('options', function() {
'setAutoOpenFileTypesDisplayed',
'setBluetoothState',
'setFontSize',
- 'setGtkThemeButtonEnabled',
+ 'setNativeThemeButtonEnabled',
'setHighContrastCheckboxState',
'setMetricsReportingCheckboxState',
'setMetricsReportingSettingVisibility',

Powered by Google App Engine
This is Rietveld 408576698