This source file includes following definitions.
- ConfigureAsyncDnsFieldTrial
#include "chrome/browser/net/async_dns_field_trial.h"
#include "base/metrics/field_trial.h"
#include "base/strings/string_util.h"
#include "build/build_config.h"
namespace chrome_browser_net {
bool ConfigureAsyncDnsFieldTrial() {
#if defined(OS_ANDROID) || defined(OS_IOS)
return false;
#endif
#if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_MACOSX)
const bool kDefault = true;
#else
const bool kDefault = false;
#endif
std::string group_name = base::FieldTrialList::FindFullName("AsyncDns");
if (!group_name.empty())
return StartsWithASCII(group_name, "AsyncDns", false );
return kDefault;
}
}