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

Unified Diff: net/base/address_list_net_log_param.cc

Issue 10539094: NetLogEventParameter to Callback refactoring 1, (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Remove unneeded line Created 8 years, 6 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
Index: net/base/address_list_net_log_param.cc
===================================================================
--- net/base/address_list_net_log_param.cc (revision 141407)
+++ net/base/address_list_net_log_param.cc (working copy)
@@ -1,28 +0,0 @@
-// 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.
-
-#include "net/base/address_list_net_log_param.h"
-
-#include "base/values.h"
-#include "net/base/net_util.h"
-
-namespace net {
-
-AddressListNetLogParam::AddressListNetLogParam(const AddressList& address_list)
- : address_list_(address_list) {
-}
-
-Value* AddressListNetLogParam::ToValue() const {
- DictionaryValue* dict = new DictionaryValue();
- ListValue* list = new ListValue();
-
- for (size_t i = 0; i < address_list_.size() ; ++i) {
- list->Append(Value::CreateStringValue(address_list_[i].ToString()));
- }
-
- dict->Set("address_list", list);
- return dict;
-}
-
-} // namespace

Powered by Google App Engine
This is Rietveld 408576698