Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(438)

Unified Diff: chrome/browser/profiles/profile_impl.cc

Issue 6254007: Adding ChromeVox as a component extensions (enabled only for ChromeOS, for no... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/profiles/profile_impl.cc
===================================================================
--- chrome/browser/profiles/profile_impl.cc (revision 71755)
+++ chrome/browser/profiles/profile_impl.cc (working copy)
@@ -406,6 +406,21 @@
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().AppendASCII(extension_misc::kAccessExtensionPath)
asargent_no_longer_on_chrome 2011/01/21 21:18:40 nit: this should be: FilePath path = FilePath(ext
Chaitanya 2011/01/21 21:38:49 Done.
+ .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() {

Powered by Google App Engine
This is Rietveld 408576698