blob: 8e09cebb2d975e6760e58ebbb2466a640a3201dd (
plain) (
tree)
|
|
--- net/base/network_change_notifier.cc.orig 2023-03-09 06:31:50 UTC
+++ net/base/network_change_notifier.cc
@@ -37,7 +37,7 @@
#include "net/base/network_change_notifier_linux.h"
#elif BUILDFLAG(IS_APPLE)
#include "net/base/network_change_notifier_mac.h"
-#elif BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID)
+#elif BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_ANDROID) || BUILDFLAG(IS_BSD)
#include "net/base/network_change_notifier_posix.h"
#elif BUILDFLAG(IS_FUCHSIA)
#include "net/base/network_change_notifier_fuchsia.h"
@@ -327,6 +327,9 @@ std::unique_ptr<NetworkChangeNotifier> NetworkChangeNo
#elif BUILDFLAG(IS_FUCHSIA)
return std::make_unique<NetworkChangeNotifierFuchsia>(
/*require_wlan=*/false);
+#elif BUILDFLAG(IS_BSD)
+ return std::make_unique<MockNetworkChangeNotifier>(
+ /*dns_config_notifier*/nullptr);
#else
NOTIMPLEMENTED();
return nullptr;
|