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()), |
bartfab (slow)
2016/02/16 15:23:00
Nit: Indentation.
|
+ base::FundamentalValue( |
+ policy::ProfilePolicyConnectorFactory::GetForBrowserContext(profile) |
+ ->IsManaged())); |
bartfab (slow)
2016/02/16 15:23:00
Nit: Indentation.
|
#endif |
} |