| Index: chrome/browser/chromeos/accessibility_util.cc
|
| diff --git a/chrome/browser/chromeos/accessibility_util.cc b/chrome/browser/chromeos/accessibility_util.cc
|
| index b43b7f4e0164463742285b8a4e2d6791998becdf..da4693c080b3e0bae3e8f5749eef4a4c7f0cf268 100644
|
| --- a/chrome/browser/chromeos/accessibility_util.cc
|
| +++ b/chrome/browser/chromeos/accessibility_util.cc
|
| @@ -163,6 +163,17 @@ void Speak(const char* speak_str, bool queue, bool interruptible) {
|
| Speak(speak_str);
|
| }
|
|
|
| +void MaybeSpeak(const char* speak_str, bool queue, bool interruptible) {
|
| + if (!g_browser_process) {
|
| + return;
|
| + }
|
| + PrefService* prefs = g_browser_process->local_state();
|
| + bool accessibility_enabled = prefs &&
|
| + prefs->GetBoolean(prefs::kAccessibilityEnabled);
|
| + if (accessibility_enabled) {
|
| + Speak(speak_str, queue, interruptible);
|
| + }
|
| +}
|
|
|
| } // namespace accessibility
|
| } // namespace chromeos
|
|
|