Index: chrome/test/automation/tab_proxy.cc |
diff --git a/chrome/test/automation/tab_proxy.cc b/chrome/test/automation/tab_proxy.cc |
index 49cd00c2dfe1dfc0f75838065da2b0e6a081d8b5..66e31eb158e2f084fbc07490f081a03e3a9760af 100644 |
--- a/chrome/test/automation/tab_proxy.cc |
+++ b/chrome/test/automation/tab_proxy.cc |
@@ -266,7 +266,7 @@ bool TabProxy::ExecuteAndExtractString(const std::wstring& frame_xpath, |
if (!succeeded) |
return false; |
- DCHECK(root->IsType(Value::TYPE_LIST)); |
+ DCHECK(root->AsList()); |
Value* value = NULL; |
succeeded = static_cast<ListValue*>(root)->Get(0, &value); |
Evan Martin
2011/08/23 19:04:11
can use AsList here
tfarina
2011/08/23 20:00:33
Done.
|
if (succeeded) { |
@@ -291,7 +291,7 @@ bool TabProxy::ExecuteAndExtractBool(const std::wstring& frame_xpath, |
return false; |
bool read_value = false; |
- DCHECK(root->IsType(Value::TYPE_LIST)); |
+ DCHECK(root->AsList()); |
Value* value = NULL; |
succeeded = static_cast<ListValue*>(root)->Get(0, &value); |
Evan Martin
2011/08/23 19:04:11
here too
tfarina
2011/08/23 20:00:33
Done.
|
if (succeeded) { |
@@ -314,7 +314,7 @@ bool TabProxy::ExecuteAndExtractInt(const std::wstring& frame_xpath, |
return false; |
int read_value = 0; |
- DCHECK(root->IsType(Value::TYPE_LIST)); |
+ DCHECK(root->AsList()); |
Value* value = NULL; |
succeeded = static_cast<ListValue*>(root)->Get(0, &value); |
Evan Martin
2011/08/23 19:04:11
here too
tfarina
2011/08/23 20:00:33
Done.
|
if (succeeded) { |