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

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

Issue 404733005: Replace uses of uint8 with uint8_t. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto master Created 6 years, 5 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/child/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/child/webcrypto/webcrypto_util.cc
diff --git a/content/child/webcrypto/webcrypto_util.cc b/content/child/webcrypto/webcrypto_util.cc
index 7bedc43bb45b2a2c61a42f2c8ab80a4e44785355..b94cbea2208b3100edbb36cfcc02b9ee1e835f6a 100644
--- a/content/child/webcrypto/webcrypto_util.cc
+++ b/content/child/webcrypto/webcrypto_util.cc
@@ -16,13 +16,13 @@ namespace content {
namespace webcrypto {
-const uint8* Uint8VectorStart(const std::vector<uint8>& data) {
+const uint8_t* Uint8VectorStart(const std::vector<uint8_t>& data) {
if (data.empty())
return NULL;
return &data[0];
}
-uint8* Uint8VectorStart(std::vector<uint8>* data) {
+uint8_t* Uint8VectorStart(std::vector<uint8_t>* data) {
if (data->empty())
return NULL;
return &(*data)[0];
@@ -52,7 +52,7 @@ std::string Base64EncodeUrlSafe(const base::StringPiece& input) {
return output;
}
-std::string Base64EncodeUrlSafe(const std::vector<uint8>& input) {
+std::string Base64EncodeUrlSafe(const std::vector<uint8_t>& input) {
const base::StringPiece string_piece(
reinterpret_cast<const char*>(Uint8VectorStart(input)), input.size());
return Base64EncodeUrlSafe(string_piece);
« no previous file with comments | « content/child/webcrypto/webcrypto_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698