Index: chrome/test/perf/dom_checker_uitest.cc |
diff --git a/chrome/test/perf/dom_checker_uitest.cc b/chrome/test/perf/dom_checker_uitest.cc |
index deceb9e1481a816c6c2623fb91a6606c87078cd4..8255a94362d8b6e38433f6ee44138e6b246c93df 100644 |
--- a/chrome/test/perf/dom_checker_uitest.cc |
+++ b/chrome/test/perf/dom_checker_uitest.cc |
@@ -175,11 +175,12 @@ class DomCheckerTest : public UITest { |
if (!value.get()) |
return false; |
- EXPECT_TRUE(value->AsList()); |
- ListValue* list_value = value->AsList(); |
- if (!list_value) |
+ EXPECT_TRUE(value->IsType(Value::TYPE_LIST)); |
+ if (!value->IsType(Value::TYPE_LIST)) |
return false; |
+ ListValue* list_value = static_cast<ListValue*>(value.get()); |
+ |
// The parsed JSON object will be an array of strings, each of which is a |
// test failure. Add those strings to the results set. |
ListValue::const_iterator it = list_value->begin(); |