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

Unified Diff: extensions/browser/verified_contents.h

Issue 2768033002: Use size_t in crypto::SignatureVerifier. (Closed)
Patch Set: . Created 3 years, 9 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: extensions/browser/verified_contents.h
diff --git a/extensions/browser/verified_contents.h b/extensions/browser/verified_contents.h
index 9d0924a67ec1ddf2c972a545cf3a2124104895b8..6a4497221b89a33bdb567e445fc7646774ccf33c 100644
--- a/extensions/browser/verified_contents.h
+++ b/extensions/browser/verified_contents.h
@@ -24,7 +24,7 @@ namespace extensions {
class VerifiedContents {
public:
// Note: the public_key must remain valid for the lifetime of this object.
- VerifiedContents(const uint8_t* public_key, int public_key_size);
+ VerifiedContents(const uint8_t* public_key, size_t public_key_size);
~VerifiedContents();
// Returns true if we successfully parsed the verified_contents.json file at
@@ -59,7 +59,7 @@ class VerifiedContents {
// The public key we should use for signature verification.
const uint8_t* public_key_;
- const int public_key_size_;
+ const size_t public_key_size_;
// Indicates whether the signature was successfully validated or not.
bool valid_signature_;

Powered by Google App Engine
This is Rietveld 408576698