field_trial.cc 671 B

1234567891011121314151617181920
  1. // Copyright 2015 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "base/metrics/field_trial.h"
  5. #include "base/strings/string_piece.h"
  6. #include "third_party/abseil-cpp/absl/strings/string_view.h"
  7. // Define webrtc::field_trial::FindFullName to provide webrtc with a field trial
  8. // implementation.
  9. namespace webrtc {
  10. namespace field_trial {
  11. std::string FindFullName(absl::string_view trial_name) {
  12. return base::FieldTrialList::FindFullName(
  13. base::StringPiece(trial_name.data(), trial_name.length()));
  14. }
  15. } // namespace field_trial
  16. } // namespace webrtc