diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-21 19:42:19 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-06-21 19:42:19 +0000 |
commit | 0c6c1e43289fc2e225a6c824aff40c9b63b5df78 (patch) | |
tree | 9ab1034e260c5887ecc7a70cd112cef97458582a /jingle | |
parent | ae0c0f6af00c25b6c41c9e37e8cb849de9a9a680 (diff) | |
download | chromium_src-0c6c1e43289fc2e225a6c824aff40c9b63b5df78.zip chromium_src-0c6c1e43289fc2e225a6c824aff40c9b63b5df78.tar.gz chromium_src-0c6c1e43289fc2e225a6c824aff40c9b63b5df78.tar.bz2 |
Add base namespace to more values in sync and elsewhere.
This makes sync and net compile with no "using *Value".
BUG=
Review URL: https://codereview.chromium.org/17034006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@207907 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'jingle')
-rw-r--r-- | jingle/glue/utils.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/jingle/glue/utils.cc b/jingle/glue/utils.cc index d58fce0..bc548ea 100644 --- a/jingle/glue/utils.cc +++ b/jingle/glue/utils.cc @@ -35,7 +35,7 @@ bool SocketAddressToIPEndPoint(const talk_base::SocketAddress& address, std::string SerializeP2PCandidate(const cricket::Candidate& candidate) { // TODO(sergeyu): Use SDP to format candidates? - DictionaryValue value; + base::DictionaryValue value; value.SetString("ip", candidate.address().ipaddr().ToString()); value.SetInteger("port", candidate.address().port()); value.SetString("type", candidate.type()); @@ -52,13 +52,14 @@ std::string SerializeP2PCandidate(const cricket::Candidate& candidate) { bool DeserializeP2PCandidate(const std::string& candidate_str, cricket::Candidate* candidate) { - scoped_ptr<Value> value( + scoped_ptr<base::Value> value( base::JSONReader::Read(candidate_str, base::JSON_ALLOW_TRAILING_COMMAS)); - if (!value.get() || !value->IsType(Value::TYPE_DICTIONARY)) { + if (!value.get() || !value->IsType(base::Value::TYPE_DICTIONARY)) { return false; } - DictionaryValue* dic_value = static_cast<DictionaryValue*>(value.get()); + base::DictionaryValue* dic_value = + static_cast<base::DictionaryValue*>(value.get()); std::string ip; int port; |