Commit 898df623 authored by Maks Orlovich's avatar Maks Orlovich Committed by Commit Bot

URLLoader: add some temporary debug aliases.

Bug: 893971
Change-Id: I9340eef7af2d6c414dcc3d9ce2d3829f2a5cfaaf
Reviewed-on: https://chromium-review.googlesource.com/c/1298296
Commit-Queue: Maks Orlovich <morlovich@chromium.org>
Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#602500}
parent 16ee52b5
......@@ -9,6 +9,7 @@
#include <utility>
#include <vector>
#include "base/debug/alias.h"
#include "base/files/file.h"
#include "base/memory/weak_ptr.h"
#include "base/metrics/histogram_macros.h"
......@@ -695,6 +696,14 @@ void URLLoader::OnResponseStarted(net::URLRequest* url_request, int net_error) {
raw_response_headers_ = nullptr;
}
// Save some info for debugging. Temporary for https://crbug.com/893971
int32_t annotation_hash =
url_request_->traffic_annotation().unique_id_hash_code;
size_t num_running_requests = url_request_context_->url_requests()->size();
base::debug::Alias(&annotation_hash);
base::debug::Alias(&num_running_requests);
DEBUG_ALIAS_FOR_GURL(url_buf, url_request_->url());
mojo::DataPipe data_pipe(kDefaultAllocationSize);
response_body_stream_ = std::move(data_pipe.producer_handle);
consumer_handle_ = std::move(data_pipe.consumer_handle);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment