Index: chrome/browser/resources/options2/language_options.js |
diff --git a/chrome/browser/resources/options2/language_options.js b/chrome/browser/resources/options2/language_options.js |
index 7a58624f7b76c8cc0d0b22e99f629480e009a15b..d57ed4ca07e9ffaa0e8aed653fdeac425bc35e42 100644 |
--- a/chrome/browser/resources/options2/language_options.js |
+++ b/chrome/browser/resources/options2/language_options.js |
@@ -361,7 +361,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 && cr.commandLine.options['--bwsi']) { |
+ if (cr.isChromeOS && AccountsOptions.loggedInAsGuest()) { |
// 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; |