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

Unified Diff: net/base/address_list_net_log_param.cc

Issue 10309002: Reimplements net::AddressList without struct addrinfo. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: get_canonical_name -> canonical_name. iterator to indexing Created 8 years, 7 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 | « net/base/address_list.cc ('k') | net/base/address_list_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..78fa660bb9dfde41d192baea19ceebad29c17d73 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,8 @@ 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 (size_t i = 0; i < address_list_.size() ; ++i) {
+ list->Append(Value::CreateStringValue(address_list_[i].ToString()));
}
dict->Set("address_list", list);
« no previous file with comments | « net/base/address_list.cc ('k') | net/base/address_list_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698