Merge pull request #124 from deepak1556/devtools_network_patch
create netlog instance for devtoolsnetlogobserver
This commit is contained in:
commit
89546a9c19
7 changed files with 44 additions and 31 deletions
|
@ -157,10 +157,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