Replace std::string::find() == 0 with absl::StartsWith.
Bug: None Change-Id: I070c4a5d19455f3a5c5d3ccc05f418545c351987 Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/172584 Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Commit-Queue: Mirko Bonadei <mbonadei@webrtc.org> Cr-Commit-Position: refs/heads/master@{#30960}
This commit is contained in:
committed by
Commit Bot
parent
e283d1ca64
commit
57cabed0b0
@ -15,6 +15,7 @@
|
||||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "absl/strings/match.h"
|
||||
#include "api/units/data_rate.h"
|
||||
#include "api/units/time_delta.h"
|
||||
#include "api/units/timestamp.h"
|
||||
@ -129,12 +130,12 @@ ProbeControllerConfig::~ProbeControllerConfig() = default;
|
||||
ProbeController::ProbeController(const WebRtcKeyValueConfig* key_value_config,
|
||||
RtcEventLog* event_log)
|
||||
: enable_periodic_alr_probing_(false),
|
||||
in_rapid_recovery_experiment_(
|
||||
key_value_config->Lookup(kBweRapidRecoveryExperiment)
|
||||
.find("Enabled") == 0),
|
||||
limit_probes_with_allocateable_rate_(
|
||||
key_value_config->Lookup(kCappedProbingFieldTrialName)
|
||||
.find("Disabled") != 0),
|
||||
in_rapid_recovery_experiment_(absl::StartsWith(
|
||||
key_value_config->Lookup(kBweRapidRecoveryExperiment),
|
||||
"Enabled")),
|
||||
limit_probes_with_allocateable_rate_(!absl::StartsWith(
|
||||
key_value_config->Lookup(kCappedProbingFieldTrialName),
|
||||
"Disabled")),
|
||||
event_log_(event_log),
|
||||
config_(ProbeControllerConfig(key_value_config)) {
|
||||
Reset(0);
|
||||
|
||||
Reference in New Issue
Block a user