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

Unified Diff: net/url_request/url_request_throttler_manager.cc

Issue 10532121: NetLogEventParameter to Callback refactoring 6. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Update includes 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/url_request/url_request_throttler_manager.cc
===================================================================
--- net/url_request/url_request_throttler_manager.cc (revision 141814)
+++ net/url_request/url_request_throttler_manager.cc (working copy)
@@ -83,9 +83,8 @@
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 @@
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);
}
}
« net/url_request/url_request_http_job.cc ('K') | « net/url_request/url_request_throttler_entry.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698