Roll src/third_party/skia de7665a:76033be
[chromium-blink-merge.git] / components / metrics / metrics_service_accessor.cc
blob515ce08c1bc6cc06916a34c7a823b921bd45c343
1 // Copyright 2014 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.
5 #include "components/metrics/metrics_service_accessor.h"
7 #include "components/metrics/metrics_service.h"
9 namespace metrics {
11 // static
12 bool MetricsServiceAccessor::RegisterSyntheticFieldTrial(
13 MetricsService* metrics_service,
14 uint32_t trial_name_hash,
15 uint32_t group_name_hash) {
16 if (!metrics_service)
17 return false;
19 SyntheticTrialGroup trial_group(trial_name_hash, group_name_hash);
20 metrics_service->RegisterSyntheticFieldTrial(trial_group);
21 return true;
24 } // namespace metrics