summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/resources/options/about_page.js12
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/browser/resources/options/about_page.js b/chrome/browser/resources/options/about_page.js
index 7b395f0..8276057 100644
--- a/chrome/browser/resources/options/about_page.js
+++ b/chrome/browser/resources/options/about_page.js
@@ -32,10 +32,14 @@ cr.define('options', function() {
$('aboutPageMoreInfo').classList.remove('hidden');
};
- $('channelSelect').onchange = function(event) {
- var channel = event.target.value;
- chrome.send('SetReleaseTrack', [channel]);
- };
+ if (cr.commandLine.options['--bwsi']) {
+ $('channelSelect').disabled = true;
+ } else {
+ $('channelSelect').onchange = function(event) {
+ var channel = event.target.value;
+ chrome.send('SetReleaseTrack', [channel]);
+ };
+ }
// Notify the handler that the page is ready.
chrome.send('PageReady');