Index: chrome/common/json_schema_validator.cc |
diff --git a/chrome/common/json_schema_validator.cc b/chrome/common/json_schema_validator.cc |
index 0662fcf553482ba826549204269ab28932d30071..34278d33964528c8aa24b69a617574ad748d8824 100644 |
--- a/chrome/common/json_schema_validator.cc |
+++ b/chrome/common/json_schema_validator.cc |
@@ -249,8 +249,7 @@ void JSONSchemaValidator::ValidateEnum(Value* instance, |
case Value::TYPE_INTEGER: |
case Value::TYPE_DOUBLE: |
- if (instance->IsType(Value::TYPE_INTEGER) || |
- instance->IsType(Value::TYPE_DOUBLE)) { |
+ if (instance->IsInteger() || instance->IsDouble()) { |
if (GetNumberValue(choice) == GetNumberValue(instance)) |
return; |
} |