Chromium Code Reviews| Index: chrome/browser/ui/webui/options/browser_options_handler.cc |
| diff --git a/chrome/browser/ui/webui/options/browser_options_handler.cc b/chrome/browser/ui/webui/options/browser_options_handler.cc |
| index a9045fff5b0b8ab7fbd54011913c56e0dbdfe3bf..aefd4d9474ab096418e67ad04a7801b0b0abd9f7 100644 |
| --- a/chrome/browser/ui/webui/options/browser_options_handler.cc |
| +++ b/chrome/browser/ui/webui/options/browser_options_handler.cc |
| @@ -1048,7 +1048,9 @@ void BrowserOptionsHandler::InitializePage() { |
| consumer_management->AddObserver(this); |
| } |
| - if (!arc::ArcBridgeService::GetEnabled( |
| + if (policy::ProfilePolicyConnectorFactory::GetForBrowserContext(profile) |
|
Thiemo Nagel
2016/02/12 17:32:08
Wouldn't that hide the ARC checkbox for all manage
Polina Bondarenko
2016/02/12 17:45:00
Do you mean that if ARC is enabled by policy, then
Thiemo Nagel
2016/02/12 17:53:32
Yes, sure. But in that case the checkbox shouldn'
|
| + ->IsManaged() || |
| + !arc::ArcBridgeService::GetEnabled( |
| base::CommandLine::ForCurrentProcess()) || |
| arc::ArcAuthService::IsOptInVerificationDisabled()) { |
| web_ui()->CallJavascriptFunction("BrowserOptions.hideAndroidAppsSection"); |