diff options
Diffstat (limited to 'chrome/browser/profiles/profile_impl.cc')
-rw-r--r-- | chrome/browser/profiles/profile_impl.cc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/profiles/profile_impl.cc b/chrome/browser/profiles/profile_impl.cc index 3b540d1..05e0436 100644 --- a/chrome/browser/profiles/profile_impl.cc +++ b/chrome/browser/profiles/profile_impl.cc @@ -406,6 +406,20 @@ void ProfileImpl::RegisterComponentExtensions() { extensions_service_->register_component_extension( ExtensionService::ComponentExtensionInfo(manifest, path)); } + +#if defined(OS_CHROMEOS) + // Register access extensions only if accessibility is enabled. + if (g_browser_process->local_state()-> + GetBoolean(prefs::kAccessibilityEnabled)) { + FilePath path = FilePath(extension_misc::kAccessExtensionPath) + .AppendASCII("access_chromevox"); + std::string manifest = + ResourceBundle::GetSharedInstance().GetRawDataResource( + IDR_CHROMEVOX_MANIFEST).as_string(); + extensions_service_->register_component_extension( + ExtensionService::ComponentExtensionInfo(manifest, path)); + } +#endif } void ProfileImpl::InstallDefaultApps() { |