summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/spdy/spdy_header_block.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/net/spdy/spdy_header_block.cc b/net/spdy/spdy_header_block.cc
index 3680cb4..0b24a2a 100644
--- a/net/spdy/spdy_header_block.cc
+++ b/net/spdy/spdy_header_block.cc
@@ -36,11 +36,9 @@ bool SpdyHeaderBlockFromNetLogParam(
return false;
}
- for (base::DictionaryValue::key_iterator it = header_dict->begin_keys();
- it != header_dict->end_keys();
- ++it) {
- std::string value;
- if (!header_dict->GetString(*it, &(*headers)[*it])) {
+ for (base::DictionaryValue::Iterator it(*header_dict); !it.IsAtEnd();
+ it.Advance()) {
+ if (!it.value().GetAsString(&(*headers)[it.key()])) {
headers->clear();
return false;
}