Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: base/android/java/src/org/chromium/base/FieldTrialList.java

Issue 706203003: Update from https://crrev.com/303153 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.base; 5 package org.chromium.base;
6 6
7 /** 7 /**
8 * Helper to get field trial information. 8 * Helper to get field trial information.
9 */ 9 */
10 public class FieldTrialList { 10 public class FieldTrialList {
11 11
12 private FieldTrialList() {} 12 private FieldTrialList() {}
13 13
14 /** 14 /**
15 * @param trialName The name of the trial to get the group for. 15 * @param trialName The name of the trial to get the group for.
16 * @return The group name chosen for the named trial, or the empty string if the trial does 16 * @return The group name chosen for the named trial, or the empty string if the trial does
17 * not exist. 17 * not exist.
18 */ 18 */
19 public static String findFullName(String trialName) { 19 public static String findFullName(String trialName) {
20 return nativeFindFullName(trialName); 20 return nativeFindFullName(trialName);
21 } 21 }
22 22
23 /**
24 * @param trialName The name of the trial to get the group for.
25 * @return Whether the trial exists or not.
26 */
27 public static boolean trialExists(String trialName) {
28 return nativeTrialExists(trialName);
29 }
30
23 private static native String nativeFindFullName(String trialName); 31 private static native String nativeFindFullName(String trialName);
32 private static native boolean nativeTrialExists(String trialName);
24 } 33 }
OLDNEW
« no previous file with comments | « base/android/field_trial_list.cc ('k') | base/android/java/src/org/chromium/base/library_loader/LibraryLoader.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698