mirror of
https://github.com/mollyim/webrtc.git
synced 2025-05-12 21:30:45 +01:00
Export FieldTrialBasedConfig in order to use it in Chromium.
Goal is to initialize peerconnections in Chromium using this based field trial config until a proper config that doesn't rely on the global field trial string can be used (https://crrev.com/c/4936314). Change-Id: I3d006e2445ccc4880b73b564c8ad4408242d3696 Bug: None Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/323621 Reviewed-by: Björn Terelius <terelius@webrtc.org> Reviewed-by: Emil Lundmark <lndmrk@webrtc.org> Commit-Queue: Jeremy Leconte <jleconte@google.com> Cr-Commit-Position: refs/heads/main@{#40941}
This commit is contained in:
parent
23bee61dc7
commit
49dcb200ab
2 changed files with 3 additions and 1 deletions
|
@ -53,6 +53,7 @@ rtc_library("field_trial_based_config") {
|
|||
]
|
||||
deps = [
|
||||
"../../api:field_trials_registry",
|
||||
"../../rtc_base/system:rtc_export",
|
||||
"../../system_wrappers:field_trial",
|
||||
]
|
||||
absl_deps = [ "//third_party/abseil-cpp/absl/strings" ]
|
||||
|
|
|
@ -14,10 +14,11 @@
|
|||
|
||||
#include "absl/strings/string_view.h"
|
||||
#include "api/field_trials_registry.h"
|
||||
#include "rtc_base/system/rtc_export.h"
|
||||
|
||||
namespace webrtc {
|
||||
// Implementation using the field trial API fo the key value lookup.
|
||||
class FieldTrialBasedConfig : public FieldTrialsRegistry {
|
||||
class RTC_EXPORT FieldTrialBasedConfig : public FieldTrialsRegistry {
|
||||
private:
|
||||
std::string GetValue(absl::string_view key) const override;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue