1 // Copyright 2015 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/rlz/revenue_stats.h"
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_string.h"
9 #include "chrome/browser/search_engines/ui_thread_search_terms_data_android.h"
10 #include "jni/RevenueStats_jni.h"
16 // Register native methods
17 bool RegisterRevenueStats(JNIEnv
* env
) {
18 return RegisterNativesImpl(env
);
21 static void SetSearchClient(JNIEnv
* env
, jclass clazz
, jstring jclient
) {
22 SearchTermsDataAndroid::search_client_
.Get() =
23 base::android::ConvertJavaStringToUTF8(env
, jclient
);
26 static void SetRlzParameterValue(JNIEnv
* env
, jclass clazz
, jstring jrlz
) {
27 SearchTermsDataAndroid::rlz_parameter_value_
.Get() =
28 base::android::ConvertJavaStringToUTF16(env
, jrlz
);
31 } // namespace android