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

Unified Diff: chrome/browser/loader/safe_browsing_resource_throttle.cc

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 years, 3 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: chrome/browser/loader/safe_browsing_resource_throttle.cc
diff --git a/chrome/browser/loader/safe_browsing_resource_throttle.cc b/chrome/browser/loader/safe_browsing_resource_throttle.cc
index 07d0be244a1b088ceba8352ac50ede0d849be82b..b8a7c538393a10609b71cf8c9f1b59991f6de7f4 100644
--- a/chrome/browser/loader/safe_browsing_resource_throttle.cc
+++ b/chrome/browser/loader/safe_browsing_resource_throttle.cc
@@ -94,8 +94,9 @@ SafeBrowsingResourceThrottle::SafeBrowsingResourceThrottle(
ui_manager_(sb_service->ui_manager()),
request_(request),
resource_type_(resource_type),
- bound_net_log_(net::BoundNetLog::Make(request->net_log().net_log(),
- NetLogSourceType::SAFE_BROWSING)) {}
+ net_log_with_source_(
+ net::NetLogWithSource::Make(request->net_log().net_log(),
+ NetLogSourceType::SAFE_BROWSING)) {}
SafeBrowsingResourceThrottle::~SafeBrowsingResourceThrottle() {
if (defer_state_ != DEFERRED_NONE) {
@@ -116,19 +117,19 @@ void SafeBrowsingResourceThrottle::BeginNetLogEvent(NetLogEventType type,
const GURL& url,
const char* name,
const char* value) {
- bound_net_log_.BeginEvent(
+ net_log_with_source_.BeginEvent(
type, base::Bind(&NetLogUrlCallback, request_, url, name, value));
request_->net_log().AddEvent(
- type, bound_net_log_.source().ToEventParametersCallback());
+ type, net_log_with_source_.source().ToEventParametersCallback());
}
void SafeBrowsingResourceThrottle::EndNetLogEvent(NetLogEventType type,
const char* name,
const char* value) {
- bound_net_log_.EndEvent(
+ net_log_with_source_.EndEvent(
type, base::Bind(&NetLogStringCallback, name, value));
request_->net_log().AddEvent(
- type, bound_net_log_.source().ToEventParametersCallback());
+ type, net_log_with_source_.source().ToEventParametersCallback());
}
void SafeBrowsingResourceThrottle::WillStartRequest(bool* defer) {

Powered by Google App Engine
This is Rietveld 408576698