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

Unified Diff: chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc

Issue 27034009: Implement Google network speech synthesis (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change client name, truncate utterance length Created 7 years, 2 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/common/extensions/api/speech/tts_engine_manifest_handler.cc
diff --git a/chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc b/chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc
index bed4937db5e5cfb44a80a2c63e2f473a5d50ae18..3accddf79a4b3cfca51055a11114482aa6cf8054 100644
--- a/chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc
+++ b/chrome/common/extensions/api/speech/tts_engine_manifest_handler.cc
@@ -95,6 +95,13 @@ bool TtsEngineManifestHandler::Parse(Extension* extension, string16* error) {
return false;
}
}
+ if (one_tts_voice->HasKey(keys::kTtsVoicesRemote)) {
+ if (!one_tts_voice->GetBoolean(
+ keys::kTtsVoicesRemote, &voice_data.remote)) {
+ *error = ASCIIToUTF16(errors::kInvalidTtsVoicesRemote);
+ return false;
+ }
+ }
if (one_tts_voice->HasKey(keys::kTtsVoicesEventTypes)) {
const base::ListValue* event_types_list;
if (!one_tts_voice->GetList(

Powered by Google App Engine
This is Rietveld 408576698