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..29e0df8f840174eddd500177dea77d49b1ebf47a 100644 |
| --- a/chrome/browser/ui/webui/options/browser_options_handler.cc |
| +++ b/chrome/browser/ui/webui/options/browser_options_handler.cc |
| @@ -1048,11 +1048,14 @@ void BrowserOptionsHandler::InitializePage() { |
| consumer_management->AddObserver(this); |
| } |
| - if (!arc::ArcBridgeService::GetEnabled( |
| - base::CommandLine::ForCurrentProcess()) || |
| - arc::ArcAuthService::IsOptInVerificationDisabled()) { |
| - web_ui()->CallJavascriptFunction("BrowserOptions.hideAndroidAppsSection"); |
| - } |
| + web_ui()->CallJavascriptFunction( |
| + "BrowserOptions.setAndroidAppsSectionAttributes", |
| + base::FundamentalValue(!arc::ArcBridgeService::GetEnabled( |
| + base::CommandLine::ForCurrentProcess()) |
| + || arc::ArcAuthService::IsOptInVerificationDisabled()), |
| + base::FundamentalValue( |
|
Thiemo Nagel
2016/02/16 10:37:16
I don't really understand how the settings page wo
Polina Bondarenko
2016/02/16 14:05:02
The implicit mechanism of applying policy:
For ent
|
| + policy::ProfilePolicyConnectorFactory::GetForBrowserContext(profile) |
| + ->IsManaged())); |
| #endif |
| } |