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 fa845a86da0b158683cc286aaf0a273fd5cb5afe..777f4f3830ab444765554144133ed1bb5436df9a 100644 |
--- a/chrome/browser/resources/options/advanced_options.js |
+++ b/chrome/browser/resources/options/advanced_options.js |
@@ -113,6 +113,12 @@ var OptionsPage = options.OptionsPage; |
chrome.send('useTLS1CheckboxAction', |
[String($('sslUseTLS1').checked)]); |
}; |
+ if ($('backgroundModeCheckbox')) { |
+ $('backgroundModeCheckbox').onclick = function(event) { |
+ chrome.send('backgroundModeAction', |
+ [String($('backgroundModeCheckbox').checked)]); |
+ }; |
+ } |
// 'cloudPrintProxyEnabled' is true for Chrome branded builds on |
// certain platforms, or could be enabled by a lab. |
@@ -236,6 +242,11 @@ var OptionsPage = options.OptionsPage; |
$('sslUseTLS1').disabled = disabled; |
}; |
+ // Set the checked state for the backgroundModeCheckbox element. |
+ AdvancedOptions.SetBackgroundModeCheckboxState = function(checked) { |
+ $('backgroundModeCheckbox').checked = checked; |
+ }; |
+ |
// Set the Cloud Print proxy UI to enabled, disabled, or processing. |
AdvancedOptions.SetupCloudPrintProxySection = function( |
disabled, label, allowed) { |