Migrate SyncSchedulerImpl to NetworkConnectionTracker

This migrates SyncSchedulerImpl from NetworkChangeNotifier to
NetworkConnectionTracker, which works with the network service enabled.

Bug: 883126
Cq-Include-Trybots: luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs
Change-Id: I3482c04e6943df0b928eaebd48d9b511c6cb913a
Reviewed-on: https://chromium-review.googlesource.com/1222699
Reviewed-by: Reilly Grant <[email protected]>
Reviewed-by: Marc Treib <[email protected]>
Commit-Queue: Robbie McElrath <[email protected]>
Cr-Commit-Position: refs/heads/master@{#592459}
diff --git a/components/browser_sync/profile_sync_test_util.cc b/components/browser_sync/profile_sync_test_util.cc
index 7babee3..07ab16b5 100644
--- a/components/browser_sync/profile_sync_test_util.cc
+++ b/components/browser_sync/profile_sync_test_util.cc
@@ -25,6 +25,7 @@
 #include "components/sync_sessions/local_session_event_router.h"
 #include "services/network/public/cpp/shared_url_loader_factory.h"
 #include "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
+#include "services/network/test/test_network_connection_tracker.h"
 #include "services/network/test/test_url_loader_factory.h"
 #include "testing/gmock/include/gmock/gmock.h"
 
@@ -293,6 +294,8 @@
   init_params.url_loader_factory =
       base::MakeRefCounted<network::WeakWrapperSharedURLLoaderFactory>(
           &test_url_loader_factory_);
+  init_params.network_connection_tracker =
+      network::TestNetworkConnectionTracker::GetInstance();
   init_params.debug_identifier = "dummyDebugName";
   init_params.channel = version_info::Channel::UNKNOWN;