Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(75)

Unified Diff: components/variations/android/variations_seed_bridge.cc

Issue 1549993003: Switch to standard integer types in components/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/variations/android/variations_seed_bridge.cc
diff --git a/components/variations/android/variations_seed_bridge.cc b/components/variations/android/variations_seed_bridge.cc
index bb900502121bb005bbc3d68c8cd10c22ae30dfa6..5c2788bb7cd129f0a28bdf626542173febc662d8 100644
--- a/components/variations/android/variations_seed_bridge.cc
+++ b/components/variations/android/variations_seed_bridge.cc
@@ -5,6 +5,7 @@
#include "components/variations/android/variations_seed_bridge.h"
#include <jni.h>
+#include <stdint.h>
#include <vector>
#include "base/android/context_utils.h"
@@ -25,7 +26,7 @@ namespace {
std::string JavaByteArrayToString(JNIEnv* env, jbyteArray byte_array) {
if (!byte_array)
return std::string();
- std::vector<uint8> array_data;
+ std::vector<uint8_t> array_data;
base::android::JavaByteArrayToByteVector(env, byte_array, &array_data);
return std::string(array_data.begin(), array_data.end());
}
@@ -33,7 +34,7 @@ std::string JavaByteArrayToString(JNIEnv* env, jbyteArray byte_array) {
ScopedJavaLocalRef<jbyteArray> StringToJavaByteArray(
JNIEnv* env,
const std::string& str_data) {
- std::vector<uint8> array_data(str_data.begin(), str_data.end());
+ std::vector<uint8_t> array_data(str_data.begin(), str_data.end());
return base::android::ToJavaByteArray(env, array_data);
}
« no previous file with comments | « components/variations/android/component_jni_registrar.cc ('k') | components/variations/caching_permuted_entropy_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698