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 package org.chromium.components.variations;
7 import org.chromium.base.JNINamespace;
10 * Wrapper for variations.
12 @JNINamespace("variations::android")
13 public final class VariationsAssociatedData {
15 private VariationsAssociatedData() {
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.
24 public static String getVariationParamValue(String trialName, String paramName) {
25 return nativeGetVariationParamValue(trialName, paramName);
28 private static native String nativeGetVariationParamValue(String trialName, String paramName);