OLD | NEW |
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 #include "components/variations/android/variations_associated_data_android.h" | 5 #include "components/variations/android/variations_associated_data_android.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/android/jni_string.h" | 9 #include "base/android/jni_string.h" |
10 #include "components/variations/variations_associated_data.h" | 10 #include "components/variations/variations_associated_data.h" |
11 #include "components/variations/variations_http_header_provider.h" | 11 #include "components/variations/variations_http_header_provider.h" |
12 #include "jni/VariationsAssociatedData_jni.h" | 12 #include "jni/VariationsAssociatedData_jni.h" |
13 | 13 |
14 using base::android::ConvertJavaStringToUTF8; | 14 using base::android::ConvertJavaStringToUTF8; |
15 using base::android::ConvertUTF8ToJavaString; | 15 using base::android::ConvertUTF8ToJavaString; |
| 16 using base::android::JavaParamRef; |
| 17 using base::android::ScopedJavaLocalRef; |
16 | 18 |
17 namespace variations { | 19 namespace variations { |
18 | 20 |
19 namespace android { | 21 namespace android { |
20 | 22 |
21 ScopedJavaLocalRef<jstring> GetVariationParamValue( | 23 ScopedJavaLocalRef<jstring> GetVariationParamValue( |
22 JNIEnv* env, | 24 JNIEnv* env, |
23 const JavaParamRef<jclass>& clazz, | 25 const JavaParamRef<jclass>& clazz, |
24 const JavaParamRef<jstring>& jtrial_name, | 26 const JavaParamRef<jstring>& jtrial_name, |
25 const JavaParamRef<jstring>& jparam_name) { | 27 const JavaParamRef<jstring>& jparam_name) { |
(...skipping 12 matching lines...) Expand all Loading... |
38 return ConvertUTF8ToJavaString(env, values); | 40 return ConvertUTF8ToJavaString(env, values); |
39 } | 41 } |
40 | 42 |
41 bool RegisterVariationsAssociatedData(JNIEnv* env) { | 43 bool RegisterVariationsAssociatedData(JNIEnv* env) { |
42 return RegisterNativesImpl(env); | 44 return RegisterNativesImpl(env); |
43 } | 45 } |
44 | 46 |
45 } // namespace android | 47 } // namespace android |
46 | 48 |
47 } // namespace variations | 49 } // namespace variations |
OLD | NEW |