WebRTC-DeprecateGlobalFieldTrialString/Enabled/ - part 11/inf

convert rtc_base/network and collateral.

This also remove last usage of system_wrappers/field_trials
in p2p/...Yay!

Bug: webrtc:10335
Change-Id: Ie8507b1f52bf7f3067e9b4bf8c81a825e4644fda
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/256640
Reviewed-by: Mirko Bonadei <mbonadei@webrtc.org>
Reviewed-by: Harald Alvestrand <hta@webrtc.org>
Commit-Queue: Jonas Oreland <jonaso@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#36357}
This commit is contained in:
Jonas Oreland
2022-03-28 14:58:26 +02:00
committed by WebRTC LUCI CQ
parent 342c511007
commit c06fe8b04e
31 changed files with 284 additions and 154 deletions

View File

@ -15,6 +15,7 @@
#include "absl/strings/string_view.h"
#include "api/sequence_checker.h"
#include "api/webrtc_key_value_config.h"
#include "rtc_base/network_monitor.h"
#include "rtc_base/network_monitor_factory.h"
#include "rtc_base/string_utils.h"
@ -31,7 +32,8 @@ class ObjCNetworkMonitorFactory : public rtc::NetworkMonitorFactory {
ObjCNetworkMonitorFactory() = default;
~ObjCNetworkMonitorFactory() override = default;
rtc::NetworkMonitorInterface* CreateNetworkMonitor() override;
rtc::NetworkMonitorInterface* CreateNetworkMonitor(
const WebRtcKeyValueConfig& field_trials) override;
};
class ObjCNetworkMonitor : public rtc::NetworkMonitorInterface,

View File

@ -20,7 +20,8 @@
namespace webrtc {
rtc::NetworkMonitorInterface* ObjCNetworkMonitorFactory::CreateNetworkMonitor() {
rtc::NetworkMonitorInterface* ObjCNetworkMonitorFactory::CreateNetworkMonitor(
const WebRtcKeyValueConfig& field_trials) {
return new ObjCNetworkMonitor();
}