Merge pull request #124 from deepak1556/devtools_network_patch

create netlog instance for devtoolsnetlogobserver
This commit is contained in:
Cheng Zhao 2015-07-16 06:35:29 -07:00
commit 89546a9c19
7 changed files with 44 additions and 31 deletions

View file

@ -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());