summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request_throttler_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/url_request/url_request_throttler_manager.cc')
-rw-r--r--net/url_request/url_request_throttler_manager.cc10
1 files changed, 4 insertions, 6 deletions
diff --git a/net/url_request/url_request_throttler_manager.cc b/net/url_request/url_request_throttler_manager.cc
index 6d26510..fa04a00 100644
--- a/net/url_request/url_request_throttler_manager.cc
+++ b/net/url_request/url_request_throttler_manager.cc
@@ -83,9 +83,8 @@ scoped_refptr<URLRequestThrottlerEntryInterface>
IsLocalhost(host)) {
if (!logged_for_localhost_disabled_ && IsLocalhost(host)) {
logged_for_localhost_disabled_ = true;
- net_log_.AddEvent(
- NetLog::TYPE_THROTTLING_DISABLED_FOR_HOST,
- make_scoped_refptr(new NetLogStringParameter("host", host)));
+ net_log_.AddEvent(NetLog::TYPE_THROTTLING_DISABLED_FOR_HOST,
+ NetLog::StringCallback("host", &host));
}
// TODO(joi): Once sliding window is separate from back-off throttling,
@@ -108,9 +107,8 @@ void URLRequestThrottlerManager::AddToOptOutList(const std::string& host) {
if (opt_out_hosts_.find(host) == opt_out_hosts_.end()) {
UMA_HISTOGRAM_COUNTS("Throttling.SiteOptedOut", 1);
- net_log_.EndEvent(
- NetLog::TYPE_THROTTLING_DISABLED_FOR_HOST,
- make_scoped_refptr(new NetLogStringParameter("host", host)));
+ net_log_.EndEvent(NetLog::TYPE_THROTTLING_DISABLED_FOR_HOST,
+ NetLog::StringCallback("host", &host));
opt_out_hosts_.insert(host);
}
}