Index: jingle/glue/utils.cc |
diff --git a/jingle/glue/utils.cc b/jingle/glue/utils.cc |
index acdb302f1c905dbc7113126d6cfc3536154cf40b..9a6a1bb5a9daa8a8e639e0bb49f54292c2b9f31e 100644 |
--- a/jingle/glue/utils.cc |
+++ b/jingle/glue/utils.cc |
@@ -60,9 +60,8 @@ std::string SerializeP2PCandidate(const cricket::Candidate& candidate) { |
bool DeserializeP2PCandidate(const std::string& candidate_str, |
cricket::Candidate* candidate) { |
scoped_ptr<Value> value(base::JSONReader::Read(candidate_str, true)); |
- if (!value.get() || !value->IsType(Value::TYPE_DICTIONARY)) { |
+ if (!value.get() || !value->IsDictionary()) |
return false; |
- } |
DictionaryValue* dic_value = static_cast<DictionaryValue*>(value.get()); |