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

Unified Diff: components/crx_file/id_util.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 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
« no previous file with comments | « components/crx_file/id_util.h ('k') | components/crx_file/id_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/crx_file/id_util.cc
diff --git a/components/crx_file/id_util.cc b/components/crx_file/id_util.cc
index d628aa144963cd6af072a6c7ddf868f9de0c8778..99a245606837ea312dacbe66f35b84ea6ee6972a 100644
--- a/components/crx_file/id_util.cc
+++ b/components/crx_file/id_util.cc
@@ -4,10 +4,13 @@
#include "components/crx_file/id_util.h"
+#include <stdint.h>
+
#include "base/files/file_path.h"
#include "base/sha1.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
+#include "build/build_config.h"
#include "crypto/sha2.h"
namespace {
@@ -37,7 +40,7 @@ namespace id_util {
const size_t kIdSize = 16;
std::string GenerateId(const std::string& input) {
- uint8 hash[kIdSize];
+ uint8_t hash[kIdSize];
crypto::SHA256HashString(input, hash, sizeof(hash));
std::string output =
base::ToLowerASCII(base::HexEncode(hash, sizeof(hash)));
« no previous file with comments | « components/crx_file/id_util.h ('k') | components/crx_file/id_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698