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

Unified Diff: content/renderer/webcrypto/webcrypto_util.cc

Issue 147573002: [style] Consistently use "unsigned int" rather than just "unsigned". (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 11 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
« no previous file with comments | « content/renderer/webcrypto/webcrypto_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/webcrypto/webcrypto_util.cc
diff --git a/content/renderer/webcrypto/webcrypto_util.cc b/content/renderer/webcrypto/webcrypto_util.cc
index 4c58125e34699801ec90260a6cb3ce56f1d4e00f..29b0713d62bcb201c3807bf834f67e6fff8fd999 100644
--- a/content/renderer/webcrypto/webcrypto_util.cc
+++ b/content/renderer/webcrypto/webcrypto_util.cc
@@ -161,7 +161,7 @@ const uint8* Uint8VectorStart(const std::vector<uint8>& data) {
return &data[0];
}
-void ShrinkBuffer(blink::WebArrayBuffer* buffer, unsigned new_size) {
+void ShrinkBuffer(blink::WebArrayBuffer* buffer, unsigned int new_size) {
DCHECK_LE(new_size, buffer->byteLength());
if (new_size == buffer->byteLength())
@@ -173,7 +173,8 @@ void ShrinkBuffer(blink::WebArrayBuffer* buffer, unsigned new_size) {
*buffer = new_buffer;
}
-blink::WebArrayBuffer CreateArrayBuffer(const uint8* data, unsigned data_size) {
+blink::WebArrayBuffer CreateArrayBuffer(const uint8* data,
+ unsigned int data_size) {
blink::WebArrayBuffer buffer = blink::WebArrayBuffer::create(data_size, 1);
DCHECK(!buffer.isNull());
if (data_size) // data_size == 0 might mean the data pointer is invalid
@@ -240,7 +241,7 @@ blink::WebCryptoAlgorithm CreateHmacAlgorithmByHashId(
blink::WebCryptoAlgorithm CreateHmacKeyGenAlgorithm(
blink::WebCryptoAlgorithmId hash_id,
- unsigned key_length_bytes) {
+ unsigned int key_length_bytes) {
DCHECK(IsHashAlgorithm(hash_id));
// key_length_bytes == 0 means unspecified
return blink::WebCryptoAlgorithm::adoptParamsAndCreate(
@@ -268,7 +269,7 @@ blink::WebCryptoAlgorithm CreateRsaOaepAlgorithm(
blink::WebCryptoAlgorithm CreateRsaKeyGenAlgorithm(
blink::WebCryptoAlgorithmId algorithm_id,
- unsigned modulus_length,
+ unsigned int modulus_length,
const std::vector<uint8>& public_exponent) {
DCHECK(algorithm_id == blink::WebCryptoAlgorithmIdRsaEsPkcs1v1_5 ||
algorithm_id == blink::WebCryptoAlgorithmIdRsaSsaPkcs1v1_5 ||
« no previous file with comments | « content/renderer/webcrypto/webcrypto_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698