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

Unified Diff: net/base/address_list.cc

Issue 1149763005: Change NetLog::ParametersCallback to return a scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments on ownership removed Created 5 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 | « extensions/browser/api/web_request/web_request_api_helpers.cc ('k') | net/base/sdch_net_log_params.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/address_list.cc
diff --git a/net/base/address_list.cc b/net/base/address_list.cc
index 9f63ebf60d6cbcb900e84d3c93267807c1603329..e4b25a033d1925696f39445ce0918cd250f6fff3 100644
--- a/net/base/address_list.cc
+++ b/net/base/address_list.cc
@@ -14,8 +14,9 @@ namespace net {
namespace {
-base::Value* NetLogAddressListCallback(const AddressList* address_list,
- NetLogCaptureMode capture_mode) {
+scoped_ptr<base::Value> NetLogAddressListCallback(
+ const AddressList* address_list,
+ NetLogCaptureMode capture_mode) {
scoped_ptr<base::DictionaryValue> dict(new base::DictionaryValue());
scoped_ptr<base::ListValue> list(new base::ListValue());
@@ -25,7 +26,7 @@ base::Value* NetLogAddressListCallback(const AddressList* address_list,
}
dict->Set("address_list", list.Pass());
- return dict.release();
+ return dict.Pass();
}
} // namespace
« no previous file with comments | « extensions/browser/api/web_request/web_request_api_helpers.cc ('k') | net/base/sdch_net_log_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698