Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / chrome / browser / android / field_trial_helper.cc
blobb3be6d2233076fa422a51b4b827c87d05f89e7b2
1 // Copyright 2013 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 "chrome/browser/android/field_trial_helper.h"
7 #include <jni.h>
9 #include "base/android/jni_string.h"
10 #include "base/metrics/field_trial.h"
11 #include "jni/FieldTrialHelper_jni.h"
13 using base::android::ConvertJavaStringToUTF8;
14 using base::android::ConvertUTF8ToJavaString;
16 static jstring GetFieldTrialFullName(JNIEnv* env,
17 jclass clazz,
18 jstring jtrial_name) {
19 std::string trial_name(ConvertJavaStringToUTF8(env, jtrial_name));
20 return ConvertUTF8ToJavaString(
21 env,
22 base::FieldTrialList::FindFullName(trial_name)).Release();
25 namespace chrome {
26 namespace android {
28 bool RegisterFieldTrialHelper(JNIEnv* env) {
29 return RegisterNativesImpl(env);
32 } // namespace android
33 } // namespace chrome