Index: chrome/test/automation/tab_proxy.cc |
diff --git a/chrome/test/automation/tab_proxy.cc b/chrome/test/automation/tab_proxy.cc |
index d30fd7d402f63f1bd3a6dff3d62c4043d9c07229..49cd00c2dfe1dfc0f75838065da2b0e6a081d8b5 100644 |
--- a/chrome/test/automation/tab_proxy.cc |
+++ b/chrome/test/automation/tab_proxy.cc |
@@ -266,9 +266,9 @@ bool TabProxy::ExecuteAndExtractString(const std::wstring& frame_xpath, |
if (!succeeded) |
return false; |
- DCHECK(root->AsList()); |
+ DCHECK(root->IsType(Value::TYPE_LIST)); |
Value* value = NULL; |
- succeeded = root->AsList()->Get(0, &value); |
+ succeeded = static_cast<ListValue*>(root)->Get(0, &value); |
if (succeeded) { |
string16 read_value; |
succeeded = value->GetAsString(&read_value); |
@@ -291,9 +291,9 @@ bool TabProxy::ExecuteAndExtractBool(const std::wstring& frame_xpath, |
return false; |
bool read_value = false; |
- DCHECK(root->AsList()); |
+ DCHECK(root->IsType(Value::TYPE_LIST)); |
Value* value = NULL; |
- succeeded = root->AsList()->Get(0, &value); |
+ succeeded = static_cast<ListValue*>(root)->Get(0, &value); |
if (succeeded) { |
succeeded = value->GetAsBoolean(&read_value); |
if (succeeded) { |
@@ -314,9 +314,9 @@ bool TabProxy::ExecuteAndExtractInt(const std::wstring& frame_xpath, |
return false; |
int read_value = 0; |
- DCHECK(root->AsList()); |
+ DCHECK(root->IsType(Value::TYPE_LIST)); |
Value* value = NULL; |
- succeeded = root->AsList()->Get(0, &value); |
+ succeeded = static_cast<ListValue*>(root)->Get(0, &value); |
if (succeeded) { |
succeeded = value->GetAsInteger(&read_value); |
if (succeeded) { |