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

Unified Diff: net/android/network_library.cc

Issue 1158923005: Use the exact-width integer types defined in <stdint.h> rather than (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Tweak comments. Exclude mime_sniffer*. Rebase. Created 5 years, 7 months 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: net/android/network_library.cc
diff --git a/net/android/network_library.cc b/net/android/network_library.cc
index 054439530e88a16f5381b888e2eaf72a9f3c3ee1..83d43ff41b7aa9f1040a4fb6cd9e701c58cc521a 100644
--- a/net/android/network_library.cc
+++ b/net/android/network_library.cc
@@ -50,7 +50,7 @@ void VerifyX509CertChain(const std::vector<std::string>& cert_chain,
status, is_issued_by_known_root, verified_chain);
}
-void AddTestRootCertificate(const uint8* cert, size_t len) {
+void AddTestRootCertificate(const uint8_t* cert, size_t len) {
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jbyteArray> cert_array = ToJavaByteArray(env, cert, len);
DCHECK(!cert_array.is_null());
@@ -62,9 +62,9 @@ void ClearTestRootCertificates() {
Java_AndroidNetworkLibrary_clearTestRootCertificates(env);
}
-bool StoreKeyPair(const uint8* public_key,
+bool StoreKeyPair(const uint8_t* public_key,
size_t public_len,
- const uint8* private_key,
+ const uint8_t* private_key,
size_t private_len) {
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jbyteArray> public_array =
@@ -83,7 +83,7 @@ void StoreCertificate(net::CertificateMimeType cert_type,
size_t data_len) {
JNIEnv* env = AttachCurrentThread();
ScopedJavaLocalRef<jbyteArray> data_array =
- ToJavaByteArray(env, reinterpret_cast<const uint8*>(data), data_len);
+ ToJavaByteArray(env, reinterpret_cast<const uint8_t*>(data), data_len);
jboolean ret = Java_AndroidNetworkLibrary_storeCertificate(env,
GetApplicationContext(), cert_type, data_array.obj());
LOG_IF(WARNING, !ret) <<

Powered by Google App Engine
This is Rietveld 408576698