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( |