Chromium Code Reviews| Index: chrome/test/automation/automation_json_requests.cc |
| diff --git a/chrome/test/automation/automation_json_requests.cc b/chrome/test/automation/automation_json_requests.cc |
| index ab0de317a05c72335a198dd4119fb645c6b642bc..80edc5233425bc2f373ea36d982d3a1580a4b385 100644 |
| --- a/chrome/test/automation/automation_json_requests.cc |
| +++ b/chrome/test/automation/automation_json_requests.cc |
| @@ -187,7 +187,7 @@ bool SendExecuteJavascriptJSONRequest( |
| JSONStringValueSerializer deserializer(json); |
| Value* value = deserializer.Deserialize(NULL, NULL); |
| - if (!value || !value->IsType(Value::TYPE_LIST)) { |
| + if (!value || !value->AsList()) { |
| LOG(ERROR) << "Unable to deserialize returned JSON"; |
| return false; |
| } |
| @@ -297,7 +297,7 @@ bool SendGetCookiesJSONRequest( |
| if (!reply_dict.Remove("cookies", &cookies_unscoped_value)) |
| return false; |
| scoped_ptr<Value> cookies_value(cookies_unscoped_value); |
| - if (!cookies_value->IsType(Value::TYPE_LIST)) |
| + if (!cookies_value->AsList()) |
| return false; |
| *cookies = static_cast<ListValue*>(cookies_value.release()); |
|
Evan Martin
2011/08/23 19:04:11
same here
tfarina
2011/08/23 20:00:33
Done.
|
| return true; |