Chromium Code Reviews| Index: chrome/browser/resources/options/personal_options.js |
| diff --git a/chrome/browser/resources/options/personal_options.js b/chrome/browser/resources/options/personal_options.js |
| index 3a4f0f0ae6391381df329e28c2148f3f4930dfbd..78d40dc84b334a2232e8983561f3af60e4136ab4 100644 |
| --- a/chrome/browser/resources/options/personal_options.js |
| +++ b/chrome/browser/resources/options/personal_options.js |
| @@ -87,7 +87,7 @@ cr.define('options', function() { |
| chrome.send('coreOptionsUserMetricsAction', |
| ['Options_ShowAutofillSettings']); |
| }; |
| - if (cr.isChromeOS && cr.commandLine.options['--bwsi']) { |
| + if (cr.isChromeOS && cr.commandLine && cr.commandLine.options['--bwsi']) { |
| // Hide Autofill options for the guest user. |
| $('autofill-section').hidden = true; |
| } |
| @@ -118,7 +118,7 @@ cr.define('options', function() { |
| }; |
| this.updateAccountPicture_(); |
| - if (cr.commandLine.options['--bwsi']) { |
| + if (cr.commandLine && cr.commandLine.options['--bwsi']) { |
|
Evan Stade
2011/12/09 04:11:32
I'm not sure what to do about commandLine yet, but
|
| // Disable the screen lock checkbox and change-picture-button in |
| // guest mode. |
| $('enable-screen-lock').disabled = true; |
| @@ -317,7 +317,7 @@ cr.define('options', function() { |
| * @return {boolean} True if password management should be disabled. |
| */ |
| PersonalOptions.disablePasswordManagement = function() { |
| - return cr.commandLine.options['--bwsi']; |
| + return cr.commandLine && cr.commandLine.options['--bwsi']; |
| }; |
| /** |
| @@ -325,7 +325,7 @@ cr.define('options', function() { |
| * @return {boolean} True if password management should be disabled. |
| */ |
| PersonalOptions.disableAutofillManagement = function() { |
| - return cr.commandLine.options['--bwsi']; |
| + return cr.commandLine && cr.commandLine.options['--bwsi']; |
| }; |
| if (cr.isChromeOS) { |