Index: chrome/browser/net/chrome_network_delegate.cc |
=================================================================== |
--- chrome/browser/net/chrome_network_delegate.cc (revision 142108) |
+++ chrome/browser/net/chrome_network_delegate.cc (working copy) |
@@ -169,10 +169,9 @@ |
if (url_blacklist_manager_ && |
url_blacklist_manager_->IsURLBlocked(request->url())) { |
// URL access blocked by policy. |
- scoped_refptr<net::NetLog::EventParameters> params; |
- params = new net::NetLogStringParameter("url", request->url().spec()); |
request->net_log().AddEvent( |
- net::NetLog::TYPE_CHROME_POLICY_ABORTED_REQUEST, params); |
+ net::NetLog::TYPE_CHROME_POLICY_ABORTED_REQUEST, |
+ net::NetLog::StringCallback("url", &request->url().spec())); |
eroman
2012/06/14 18:04:31
nit: might want to use possibly_invalid_spec() jus
mmenke
2012/06/14 18:49:42
Done.
|
return net::ERR_NETWORK_ACCESS_DENIED; |
} |
#endif |
@@ -379,10 +378,9 @@ |
if (url_blacklist_manager_ && |
url_blacklist_manager_->IsURLBlocked(socket->url())) { |
// URL access blocked by policy. |
- scoped_refptr<net::NetLog::EventParameters> params; |
- params = new net::NetLogStringParameter("url", socket->url().spec()); |
socket->net_log()->AddEvent( |
- net::NetLog::TYPE_CHROME_POLICY_ABORTED_REQUEST, params); |
+ net::NetLog::TYPE_CHROME_POLICY_ABORTED_REQUEST, |
+ net::NetLog::StringCallback("url", &socket->url().spec())); |
eroman
2012/06/14 18:04:31
ditto.
mmenke
2012/06/14 18:49:42
Done.
|
return net::ERR_NETWORK_ACCESS_DENIED; |
} |
#endif |