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

Unified Diff: jingle/glue/utils.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
« no previous file with comments | « content/renderer/web_ui_bindings.cc ('k') | net/base/crl_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « content/renderer/web_ui_bindings.cc ('k') | net/base/crl_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698