Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / components / variations / android / java / src / org / chromium / components / variations / VariationsAssociatedData.java
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
5 package org.chromium.components.variations;
6
7 import org.chromium.base.JNINamespace;
8
9 /**
10  * Wrapper for variations.
11  */
12 @JNINamespace("variations::android")
13 public 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 }