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

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

Issue 8889041: first cut at uber page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 9 years 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/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;

Powered by Google App Engine
This is Rietveld 408576698