Index: chrome/common/json_schema_validator.cc |
=================================================================== |
--- chrome/common/json_schema_validator.cc (revision 107051) |
+++ chrome/common/json_schema_validator.cc (working copy) |
@@ -93,7 +93,7 @@ |
case Value::TYPE_LIST: |
return "array"; |
default: |
- CHECK(false) << "Unexpected value type: " << value->GetType(); |
+ NOTREACHED() << "Unexpected value type: " << value->GetType(); |
return ""; |
} |
} |
@@ -156,7 +156,7 @@ |
if (iter == types_.end()) |
types_[id] = schema; |
else |
- CHECK(iter->second == schema); |
+ DCHECK(iter->second == schema); |
} |
// If the schema has a $ref property, the instance must validate against |
@@ -206,7 +206,7 @@ |
else if (type == "number" || type == "integer") |
ValidateNumber(instance, schema, path); |
else if (type != "boolean" && type != "null") |
- CHECK(false) << "Unexpected type: " << type; |
+ NOTREACHED() << "Unexpected type: " << type; |
} |
} |
@@ -257,7 +257,7 @@ |
break; |
default: |
- CHECK(false) << "Unexpected type in enum: " << choice->GetType(); |
+ NOTREACHED() << "Unexpected type in enum: " << choice->GetType(); |
} |
} |