Index: chrome/browser/resources/options/language_options.js |
diff --git a/chrome/browser/resources/options/language_options.js b/chrome/browser/resources/options/language_options.js |
index 7503212b3a5ad28970a40410c05252e001deb86b..452c61cea3bfb2c1b2eeaf4f7fb41557ec420117 100644 |
--- a/chrome/browser/resources/options/language_options.js |
+++ b/chrome/browser/resources/options/language_options.js |
@@ -350,7 +350,7 @@ cr.define('options', function() { |
} else if (languageCode in templateData.uiLanguageCodeSet) { |
// If the language is supported as UI language, users can click on |
// the button to change the UI language. |
- if (cr.commandLine.options['--bwsi']) { |
+ if (cr.commandLine && cr.commandLine.options['--bwsi']) { |
// In the guest mode for ChromeOS, changing UI language does not make |
// sense because it does not take effect after browser restart. |
uiLanguageButton.hidden = true; |