summaryrefslogtreecommitdiffstats
path: root/content/browser/speech/speech_recognition_request.cc
diff options
context:
space:
mode:
Diffstat (limited to 'content/browser/speech/speech_recognition_request.cc')
-rw-r--r--content/browser/speech/speech_recognition_request.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/content/browser/speech/speech_recognition_request.cc b/content/browser/speech/speech_recognition_request.cc
index 645e75d..4cc8e19 100644
--- a/content/browser/speech/speech_recognition_request.cc
+++ b/content/browser/speech/speech_recognition_request.cc
@@ -60,12 +60,12 @@ bool ParseServerResponse(const std::string& response_body,
return false;
}
DCHECK(hypotheses_value);
- if (!hypotheses_value->IsType(Value::TYPE_LIST)) {
+ const ListValue* hypotheses_list = hypotheses_value->AsList();
+ if (!hypotheses_list) {
VLOG(1) << "ParseServerResponse: Unexpected hypotheses type "
<< hypotheses_value->GetType();
return false;
}
- const ListValue* hypotheses_list = static_cast<ListValue*>(hypotheses_value);
size_t index = 0;
for (; index < hypotheses_list->GetSize(); ++index) {