create netlog for devtoolsnetlogobserver
This commit is contained in:
parent
681e868a5b
commit
7496cb29fe
7 changed files with 44 additions and 31 deletions
|
@ -150,10 +150,8 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
|
|||
url_request_context_.reset(new net::URLRequestContext);
|
||||
|
||||
// --log-net-log
|
||||
if (command_line.HasSwitch(switches::kLogNetLog)) {
|
||||
net_log_.reset(new NetLog(url_request_context_.get()));
|
||||
url_request_context_->set_net_log(net_log_.get());
|
||||
}
|
||||
net_log_.reset(new NetLog(url_request_context_.get()));
|
||||
url_request_context_->set_net_log(net_log_.get());
|
||||
|
||||
network_delegate_.reset(delegate_->CreateNetworkDelegate());
|
||||
url_request_context_->set_network_delegate(network_delegate_.get());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue