| Index: content/browser/speech/speech_recognition_request.cc
|
| diff --git a/content/browser/speech/speech_recognition_request.cc b/content/browser/speech/speech_recognition_request.cc
|
| index 4cc8e19feadb07ad1c751619113606c48a5b8664..645e75de161ef313cda02199ec230c35af1d0577 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);
|
| - const ListValue* hypotheses_list = hypotheses_value->AsList();
|
| - if (!hypotheses_list) {
|
| + if (!hypotheses_value->IsType(Value::TYPE_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) {
|
|
|