| Index: chrome/browser/chromeos/audio_mixer_alsa.cc
|
| ===================================================================
|
| --- chrome/browser/chromeos/audio_mixer_alsa.cc (revision 109026)
|
| +++ chrome/browser/chromeos/audio_mixer_alsa.cc (working copy)
|
| @@ -17,6 +17,7 @@
|
| #include "base/threading/thread.h"
|
| #include "base/threading/thread_restrictions.h"
|
| #include "chrome/browser/browser_process.h"
|
| +#include "chrome/browser/extensions/extension_tts_api_chromeos.h"
|
| #include "chrome/browser/prefs/pref_service.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "content/public/browser/browser_thread.h"
|
| @@ -302,6 +303,12 @@
|
| volume_db_ = min(max(volume_db_, min_volume_db_), max_volume_db_);
|
| }
|
|
|
| + // The speech synthesis service shouldn't be initialized until after
|
| + // we get to this point, so we call this function to tell it that it's
|
| + // safe to do TTS now. NotificationService would be cleaner,
|
| + // but it's not available at this point.
|
| + EnableChromeOsTts();
|
| +
|
| ApplyState();
|
| return true;
|
| }
|
|
|