| 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..a4b3c8db6ee51b002bd71d7a9c4ab828365f5456 100644
|
| --- a/chrome/test/automation/automation_json_requests.cc
|
| +++ b/chrome/test/automation/automation_json_requests.cc
|
| @@ -43,7 +43,7 @@ bool SendAutomationJSONRequest(AutomationMessageSender* sender,
|
| return false;
|
| }
|
| scoped_ptr<Value> value(base::JSONReader::Read(reply, true));
|
| - if (!value.get() || !value->IsType(Value::TYPE_DICTIONARY)) {
|
| + if (!value.get() || !value->IsDictionary()) {
|
| LOG(ERROR) << "JSON request did not return dict: " << command << "\n";
|
| return false;
|
| }
|
| @@ -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->IsList()) {
|
| 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->IsList())
|
| return false;
|
| *cookies = static_cast<ListValue*>(cookies_value.release());
|
| return true;
|
|
|