refactor: move IOThread and NetLog ownership to g_browser_process

This commit is contained in:
deepak1556 2018-11-07 18:53:09 +05:30
parent 414dcfcd07
commit 666a106fa8
8 changed files with 45 additions and 50 deletions

View file

@ -25,8 +25,6 @@
using content::BrowserThread;
namespace atom {
namespace {
network::mojom::HttpAuthStaticParamsPtr CreateHttpAuthStaticParams() {
@ -45,9 +43,9 @@ network::mojom::HttpAuthDynamicParamsPtr CreateHttpAuthDynamicParams(
network::mojom::HttpAuthDynamicParams::New();
auth_dynamic_params->server_whitelist =
command_line.GetSwitchValueASCII(switches::kAuthServerWhitelist);
command_line.GetSwitchValueASCII(atom::switches::kAuthServerWhitelist);
auth_dynamic_params->delegate_whitelist = command_line.GetSwitchValueASCII(
switches::kAuthNegotiateDelegateWhitelist);
atom::switches::kAuthNegotiateDelegateWhitelist);
return auth_dynamic_params;
}
@ -114,5 +112,3 @@ void IOThread::CleanUp() {
if (net_log_)
net_log_->ShutDownBeforeTaskScheduler();
}
} // namespace atom