diff options
author | chaitanyag@chromium.org <chaitanyag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-24 17:20:14 +0000 |
---|---|---|
committer | chaitanyag@chromium.org <chaitanyag@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-24 17:20:14 +0000 |
commit | 77d13338e12da7ac2c177f4da53b9293850ff357 (patch) | |
tree | 00743a289477f3a76ebc630fc51cbce9bd3d217a /chrome/browser/profiles | |
parent | e5277c6ffcaf3c7873286c5531c95acd88051801 (diff) | |
download | chromium_src-77d13338e12da7ac2c177f4da53b9293850ff357.zip chromium_src-77d13338e12da7ac2c177f4da53b9293850ff357.tar.gz chromium_src-77d13338e12da7ac2c177f4da53b9293850ff357.tar.bz2 |
Adding ChromeVox as a component extensions (enabled only for ChromeOS, for now)
BUG=none
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72238
Review URL: http://codereview.chromium.org/6254007
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72340 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/profiles')
-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() { |