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 ab34db5496e378d44e1e84b13310a47ff9bae49b..a1c320c295fe6b71ebf001fe604009d6dedda3fa 100644 |
--- a/chrome/browser/resources/options2/browser_options.js |
+++ b/chrome/browser/resources/options2/browser_options.js |
@@ -207,16 +207,21 @@ cr.define('options', function() { |
this.updateAccountPicture_(); |
- if (cr.commandLine && cr.commandLine.options['--bwsi']) { |
- // Disable the screen lock checkbox in guest mode. |
- $('enable-screen-lock').disabled = true; |
- |
- // Hide the startup section in Guest mode. |
- $('startup-section').hidden = true; |
- } else { |
+ if (localStrings.getString('current_user_is_ephemeral') != 'true') { |
+ // Enable picture changing for non-ephemeral users. |
$('account-picture-wrapper').onclick = function(event) { |
OptionsPage.navigateToPage('changePicture'); |
}; |
+ } else { |
+ // Hide picture changing option for ephemeral users. |
Nikita (slow)
2012/03/07 10:03:04
Please remove this code. Already taken care for Gu
use bartfab instead
2012/03/07 11:10:08
Done.
|
+ $('change-picture-caption').hidden = true; |
+ |
+ if (cr.commandLine && cr.commandLine.options['--bwsi']) { |
+ // Disable the screen lock checkbox in guest mode. |
+ $('enable-screen-lock').disabled = true; |
+ |
+ // Hide the startup section in guest mode. |
+ $('startup-section').hidden = true; |
} |
$('manage-accounts-button').onclick = function(event) { |