Commit 2fed3674 authored by dzhioev@chromium.org's avatar dzhioev@chromium.org

Removed Powerwash button from managed users' settings.

BUG=264497
TEST=manually
TBR=dbeam

Review URL: https://chromiumcodereview.appspot.com/22840004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@217096 0039d316-1c4b-4281-b951-d872f2087c98
parent cb7ca5fe
...@@ -787,7 +787,8 @@ void BrowserOptionsHandler::InitializePage() { ...@@ -787,7 +787,8 @@ void BrowserOptionsHandler::InitializePage() {
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
SetupAccessibilityFeatures(); SetupAccessibilityFeatures();
if (!g_browser_process->browser_policy_connector()->IsEnterpriseManaged() && if (!g_browser_process->browser_policy_connector()->IsEnterpriseManaged() &&
!chromeos::UserManager::Get()->IsLoggedInAsGuest()) { !chromeos::UserManager::Get()->IsLoggedInAsGuest() &&
!chromeos::UserManager::Get()->IsLoggedInAsLocallyManagedUser()) {
web_ui()->CallJavascriptFunction( web_ui()->CallJavascriptFunction(
"BrowserOptions.enableFactoryResetSection"); "BrowserOptions.enableFactoryResetSection");
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment