OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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_seed_bridge.h" | 5 #include "components/variations/android/variations_seed_bridge.h" |
6 | 6 |
7 #include <jni.h> | 7 #include <jni.h> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
| 10 #include "base/android/context_utils.h" |
10 #include "base/android/jni_android.h" | 11 #include "base/android/jni_android.h" |
11 #include "base/android/jni_array.h" | 12 #include "base/android/jni_array.h" |
12 #include "base/android/jni_string.h" | 13 #include "base/android/jni_string.h" |
13 #include "base/android/jni_weak_ref.h" | 14 #include "base/android/jni_weak_ref.h" |
14 #include "jni/VariationsSeedBridge_jni.h" | 15 #include "jni/VariationsSeedBridge_jni.h" |
15 | 16 |
16 using base::android::AttachCurrentThread; | 17 using base::android::AttachCurrentThread; |
17 using base::android::ConvertJavaStringToUTF8; | 18 using base::android::ConvertJavaStringToUTF8; |
18 using base::android::ConvertUTF8ToJavaString; | 19 using base::android::ConvertUTF8ToJavaString; |
19 using base::android::GetApplicationContext; | 20 using base::android::GetApplicationContext; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 Java_VariationsSeedBridge_setVariationsFirstRunSeed( | 94 Java_VariationsSeedBridge_setVariationsFirstRunSeed( |
94 env, GetApplicationContext(), StringToJavaByteArray(env, seed_data).obj(), | 95 env, GetApplicationContext(), StringToJavaByteArray(env, seed_data).obj(), |
95 ConvertUTF8ToJavaString(env, seed_signature).obj(), | 96 ConvertUTF8ToJavaString(env, seed_signature).obj(), |
96 ConvertUTF8ToJavaString(env, seed_country).obj(), | 97 ConvertUTF8ToJavaString(env, seed_country).obj(), |
97 ConvertUTF8ToJavaString(env, response_date).obj(), | 98 ConvertUTF8ToJavaString(env, response_date).obj(), |
98 static_cast<jboolean>(is_gzip_compressed)); | 99 static_cast<jboolean>(is_gzip_compressed)); |
99 } | 100 } |
100 | 101 |
101 } // namespace android | 102 } // namespace android |
102 } // namespace variations | 103 } // namespace variations |
OLD | NEW |