Index: content/browser/devtools/devtools_protocol.cc |
diff --git a/content/browser/devtools/devtools_protocol.cc b/content/browser/devtools/devtools_protocol.cc |
index e6800e702c8f776225ce8c7e83cccc1d00187197..c5d163e143e14c868245dbecc7664074bfabcd94 100644 |
--- a/content/browser/devtools/devtools_protocol.cc |
+++ b/content/browser/devtools/devtools_protocol.cc |
@@ -259,11 +259,10 @@ DevToolsProtocol::ParseResponse( |
if (!response_dict->GetInteger(kIdParam, &id)) |
id = kNoId; |
- int error_code; |
- if (!response_dict->GetInteger(kErrorCodeParam, &error_code)) |
- return new Response(id, kErrorInternalError, "Invalid response"); |
- |
- if (error_code) { |
+ const base::DictionaryValue* error_dict; |
+ if (response_dict->GetDictionary(kErrorParam, &error_dict)) { |
+ int error_code = kErrorInternalError; |
+ response_dict->GetInteger(kErrorCodeParam, &error_code); |
std::string error_message; |
response_dict->GetString(kErrorMessageParam, &error_message); |
return new Response(id, error_code, error_message); |