BUG=crbug/367114 R=asvitkine@chromium.org, mflodman@webrtc.org, tommi@webrtc.org Review URL: https://webrtc-codereview.appspot.com/14399004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@6089 4adac7df-926f-26a2-2b94-8c16560cd09d
31 lines
910 B
C++
31 lines
910 B
C++
// Copyright (c) 2014 The WebRTC project authors. All Rights Reserved.
|
|
//
|
|
// Use of this source code is governed by a BSD-style license
|
|
// that can be found in the LICENSE file in the root of the source
|
|
// tree. An additional intellectual property rights grant can be found
|
|
// in the file PATENTS. All contributing project authors may
|
|
// be found in the AUTHORS file in the root of the source tree.
|
|
//
|
|
|
|
#include "webrtc/system_wrappers/interface/field_trial.h"
|
|
|
|
#include <cassert>
|
|
|
|
namespace webrtc {
|
|
namespace field_trial {
|
|
namespace {
|
|
FindFullNameMethod find_full_name_method_ = NULL;
|
|
} // namespace
|
|
|
|
void Init(FindFullNameMethod method) {
|
|
assert(find_full_name_method_ == NULL);
|
|
find_full_name_method_ = method;
|
|
}
|
|
|
|
std::string FindFullName(const std::string& name) {
|
|
assert(find_full_name_method_ != NULL);
|
|
return find_full_name_method_(name);
|
|
}
|
|
} // namespace field_trial
|
|
} // namespace webrtc
|