Don't create NetworkService/NetworkContext classes in the browser when network service is enabled.

This makes it easy for content/ to create and own NetworkService when network service is disabled,
and connecting it with the NetworkServiceClient instance to handle SSL errors etc...

Bug: 793769
Cq-Include-Trybots: master.tryserver.chromium.linux:linux_mojo
Change-Id: I9949862e2469714d987c9a4a61b4299e5e2f7572
Reviewed-on: https://chromium-review.googlesource.com/826303
Reviewed-by: Matt Menke <[email protected]>
Commit-Queue: John Abd-El-Malek <[email protected]>
Cr-Commit-Position: refs/heads/master@{#525444}
diff --git a/chrome/browser/browser_process_impl.cc b/chrome/browser/browser_process_impl.cc
index 5ff8817..562fe79 100644
--- a/chrome/browser/browser_process_impl.cc
+++ b/chrome/browser/browser_process_impl.cc
@@ -577,8 +577,7 @@
   if (!network_connection_tracker_) {
     network_connection_tracker_ =
         std::make_unique<content::NetworkConnectionTracker>();
-    network_connection_tracker_->Initialize(
-        io_thread_->GetNetworkServiceOnUIThread());
+    network_connection_tracker_->Initialize(content::GetNetworkService());
   }
   return network_connection_tracker_.get();
 }