Index: chrome/browser/resources/options2/browser_options.js |
diff --git a/chrome/browser/resources/options2/browser_options.js b/chrome/browser/resources/options2/browser_options.js |
index 4de9bc29c880ecf6c7916c58eea4421c3a3c9ea7..d4262ca5229d8c85c94bdab70bb382f013daa95b 100644 |
--- a/chrome/browser/resources/options2/browser_options.js |
+++ b/chrome/browser/resources/options2/browser_options.js |
@@ -75,7 +75,7 @@ cr.define('options', function() { |
this.updateAdvancedSettingsExpander_.bind(this)); |
if (cr.isChromeOS) |
- AccountsOptions.applyGuestModeVisibility(document); |
+ UIAccountTweaks.applyGuestModeVisibility(document); |
// Sync (Sign in) section. |
this.updateSyncState_(templateData.syncData); |
@@ -222,7 +222,7 @@ cr.define('options', function() { |
}; |
if (cr.isChromeOS) { |
- if (!AccountsOptions.loggedInAsGuest()) { |
+ if (!UIAccountTweaks.loggedInAsGuest()) { |
$('account-picture-wrapper').onclick = function(event) { |
OptionsPage.navigateToPage('changePicture'); |
}; |
@@ -327,7 +327,7 @@ cr.define('options', function() { |
chrome.send('coreOptionsUserMetricsAction', |
['Options_ShowPasswordManager']); |
}; |
- if (cr.isChromeOS && AccountsOptions.loggedInAsGuest()) { |
+ if (cr.isChromeOS && UIAccountTweaks.loggedInAsGuest()) { |
// Disable and turn off Autofill in guest mode. |
var autofillEnabled = $('autofill-enabled'); |
autofillEnabled.disabled = true; |
@@ -771,7 +771,7 @@ cr.define('options', function() { |
*/ |
maybeShowSessionRestoreDialog_: function() { |
// Don't show this dialog in Guest mode. |
- if (cr.isChromeOS && AccountsOptions.loggedInAsGuest()) |
+ if (cr.isChromeOS && UIAccountTweaks.loggedInAsGuest()) |
return false; |
// If some of the needed preferences haven't been read yet, the |
// corresponding member variable will be undefined and we won't display |