Index: chrome/common/web_apps.cc |
diff --git a/chrome/common/web_apps.cc b/chrome/common/web_apps.cc |
index b6591b7c71d82b1084f777f1c5b36733c40bd57d..198eadd70af4ce132934408919cc3364770f763a 100644 |
--- a/chrome/common/web_apps.cc |
+++ b/chrome/common/web_apps.cc |
@@ -222,8 +222,7 @@ bool ParseWebAppFromDefinitionFile(Value* definition_value, |
&error_message)); |
CHECK(schema.get()) |
<< "Error parsing JSON schema: " << error_code << ": " << error_message; |
- CHECK(schema->IsType(Value::TYPE_DICTIONARY)) |
- << "schema root must be dictionary."; |
+ CHECK(schema->IsDictionary()) << "schema root must be dictionary."; |
JSONSchemaValidator validator(static_cast<DictionaryValue*>(schema.get())); |
@@ -239,7 +238,7 @@ bool ParseWebAppFromDefinitionFile(Value* definition_value, |
// This must be true because the schema requires the root value to be a |
// dictionary. |
- CHECK(definition_value->IsType(Value::TYPE_DICTIONARY)); |
+ CHECK(definition_value->IsDictionary()); |
DictionaryValue* definition = static_cast<DictionaryValue*>(definition_value); |
// Parse launch URL. It must be a valid URL in the same origin as the |