Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Unified Diff: chrome/renderer/extensions/extension_api_json_validity_unittest.cc

Issue 7661009: base: Add Is* functions to Value class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tony review Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/extensions/extension_api_json_validity_unittest.cc
diff --git a/chrome/renderer/extensions/extension_api_json_validity_unittest.cc b/chrome/renderer/extensions/extension_api_json_validity_unittest.cc
index 414c6c343307945b31fd75061f17c2b8633468a4..c52c065547d56641f4035b4ed7fc4d4592604e11 100644
--- a/chrome/renderer/extensions/extension_api_json_validity_unittest.cc
+++ b/chrome/renderer/extensions/extension_api_json_validity_unittest.cc
@@ -33,7 +33,7 @@ bool FindDictionaryWithProperyValue(ListValue* list,
std::string* out_error_message) {
bool found = false;
for (ListValue::const_iterator it = list->begin(); it != list->end(); ++it) {
- if (!(*it)->IsType(Value::TYPE_DICTIONARY)) {
+ if (!(*it)->IsDictionary()) {
*out_error_message = "List contains an item taht is not a dictionary.";
return false;
}
« no previous file with comments | « chrome/installer/util/master_preferences.cc ('k') | chrome/renderer/extensions/extension_process_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698