Chromium Code Reviews| Index: net/base/address_list_net_log_param.cc |
| diff --git a/net/base/address_list_net_log_param.cc b/net/base/address_list_net_log_param.cc |
| index 72332ef27d3cd64754681c78fd432d89193c6e6c..227cf7696bc58da50a8a676011902de8976d5514 100644 |
| --- a/net/base/address_list_net_log_param.cc |
| +++ b/net/base/address_list_net_log_param.cc |
| @@ -1,4 +1,4 @@ |
| -// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| @@ -6,7 +6,6 @@ |
| #include "base/values.h" |
| #include "net/base/net_util.h" |
| -#include "net/base/sys_addrinfo.h" |
| namespace net { |
| @@ -18,9 +17,9 @@ Value* AddressListNetLogParam::ToValue() const { |
| DictionaryValue* dict = new DictionaryValue(); |
| ListValue* list = new ListValue(); |
| - for (const addrinfo* head = address_list_.head(); |
| - head != NULL ; head = head->ai_next) { |
| - list->Append(Value::CreateStringValue(NetAddressToStringWithPort(head))); |
| + for (AddressList::const_iterator iter = address_list_.begin(); |
|
eroman
2012/05/04 01:08:41
[optional] consider integer iterator.
|
| + iter != address_list_.end() ; ++iter) { |
| + list->Append(Value::CreateStringValue(iter->ToString())); |
| } |
| dict->Set("address_list", list); |