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

Unified Diff: chrome/browser/resources/options/personal_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/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']) {
// 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) {

Powered by Google App Engine
This is Rietveld 408576698