blob: 15523688fc4a726f32845b879c18552c3a0965b5 [file] [log] [blame]
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "chrome/browser/metrics/metrics_service_accessor.h"
#include "components/metrics/metrics_service.h"
// TODO(asvitkine): Remove when this class is moved to metrics namespace.
using metrics::MetricsService;
using metrics::SyntheticTrialGroup;
// static
bool MetricsServiceAccessor::RegisterSyntheticFieldTrial(
MetricsService* metrics_service,
uint32_t trial_name_hash,
uint32_t group_name_hash) {
if (!metrics_service)
return false;
SyntheticTrialGroup trial_group(trial_name_hash, group_name_hash);
metrics_service->RegisterSyntheticFieldTrial(trial_group);
return true;
}