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

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

Issue 6541027: Small: Cloud print UI options fix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 10 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/advanced_options.js
diff --git a/chrome/browser/resources/options/advanced_options.js b/chrome/browser/resources/options/advanced_options.js
index cefd902a1278d0fa38ff1a0dda8da96a2d4cab7b..5eb9906410aa00eea59a385eaffff902fc4e36d4 100644
--- a/chrome/browser/resources/options/advanced_options.js
+++ b/chrome/browser/resources/options/advanced_options.js
@@ -128,21 +128,24 @@ var OptionsPage = options.OptionsPage;
// 'cloudPrintProxyEnabled' is true for Chrome branded builds on
// certain platforms, or could be enabled by a lab.
- if (!cr.isChromeOS &&
- localStrings.getString('enable-cloud-print-proxy') == 'true') {
+ if (!cr.isChromeOS) {
$('cloudPrintProxySetupButton').onclick = function(event) {
- if ($('cloudPrintProxyManageButton').style.display == 'none') {
- // Disable the button, set it's text to the intermediate state.
- $('cloudPrintProxySetupButton').textContent =
- localStrings.getString('cloudPrintProxyEnablingButton');
- $('cloudPrintProxySetupButton').disabled = true;
- chrome.send('showCloudPrintSetupDialog');
- } else {
- chrome.send('disableCloudPrintProxy');
+ if ($('cloud-print-proxy-section').style.display != 'none') {
csilv 2011/02/18 19:54:28 This added check is unnecessary. The entire secti
Scott Byer 2011/02/18 20:44:05 Done.
+ if ($('cloudPrintProxyManageButton').style.display == 'none') {
+ // Disable the button, set it's text to the intermediate state.
+ $('cloudPrintProxySetupButton').textContent =
+ localStrings.getString('cloudPrintProxyEnablingButton');
+ $('cloudPrintProxySetupButton').disabled = true;
+ chrome.send('showCloudPrintSetupDialog');
+ } else {
+ chrome.send('disableCloudPrintProxy');
+ }
}
};
$('cloudPrintProxyManageButton').onclick = function(event) {
- chrome.send('showCloudPrintManagePage');
+ if ($('cloud-print-proxy-section').style.display != 'none') {
csilv 2011/02/18 19:54:28 Same with this check.
Scott Byer 2011/02/18 20:44:05 Done.
+ chrome.send('showCloudPrintManagePage');
+ }
};
}

Powered by Google App Engine
This is Rietveld 408576698