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

Unified Diff: chrome/browser/chromeos/login/wizard_accessibility_helper.cc

Issue 7609001: Enable ChromeVox on the OOBE screens when using the keyboard shortcut. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/wizard_accessibility_helper.cc
diff --git a/chrome/browser/chromeos/login/wizard_accessibility_helper.cc b/chrome/browser/chromeos/login/wizard_accessibility_helper.cc
index 1731a6749732a11082af592aa4c547a6e269410c..83533230842f6307b663e9d349065fa7acc9d23e 100644
--- a/chrome/browser/chromeos/login/wizard_accessibility_helper.cc
+++ b/chrome/browser/chromeos/login/wizard_accessibility_helper.cc
@@ -7,6 +7,7 @@
#include "base/logging.h"
#include "base/stl_util.h"
#include "chrome/browser/browser_process.h"
+#include "chrome/browser/chromeos/accessibility_util.h"
#include "chrome/browser/extensions/extension_accessibility_api.h"
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
@@ -110,13 +111,7 @@ void WizardAccessibilityHelper::ToggleAccessibility() {
void WizardAccessibilityHelper::SetAccessibilityEnabled(bool enabled) {
bool doSpeak = (IsAccessibilityEnabled() != enabled);
- if (g_browser_process) {
- PrefService* prefService = g_browser_process->local_state();
- prefService->SetBoolean(prefs::kAccessibilityEnabled, enabled);
- prefService->ScheduleSavePersistentPrefs();
dmazzoni 2011/08/10 05:12:02 Hey, I noticed that accessibility_util.cc doesn't
- }
- ExtensionAccessibilityEventRouter::GetInstance()->
- SetAccessibilityEnabled(enabled);
+ accessibility::EnableAccessibility(enabled, NULL);
if (doSpeak) {
accessibility_handler_->Speak(enabled ?
l10n_util::GetStringUTF8(IDS_CHROMEOS_ACC_ACCESS_ENABLED).c_str() :
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698