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.
4
5package org.chromium.components.variations;
6
7import org.chromium.base.JNINamespace;
8
9/**
10 * Wrapper for variations.
11 */
12@JNINamespace("variations::android")
13public final class VariationsAssociatedData {
14
15    private VariationsAssociatedData() {
16    }
17
18    /**
19     * @param trialName The name of the trial to get the param value for.
20     * @param paramName The name of the param for which to get the value.
21     * @return The parameter value. Empty string if the field trial does not exist or the specified
22     *     parameter does not exist.
23     */
24    public static String getVariationParamValue(String trialName, String paramName) {
25        return nativeGetVariationParamValue(trialName, paramName);
26    }
27
28    private static native String nativeGetVariationParamValue(String trialName, String paramName);
29}
30