Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / chrome / browser / android / rlz / revenue_stats.cc
blobf89a2c95ad332448cb5a4895a635842e4734e7be
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"
11 #include "url/gurl.h"
13 namespace chrome {
14 namespace android {
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
32 } // namespace chrome