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

Unified Diff: chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager.cc

Issue 1547093002: Switch to standard integer types in chrome/browser/chromeos/. (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
Index: chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager.cc
diff --git a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager.cc b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager.cc
index dccd50dfe1f1de5cf1d86d3dddcb4157f42150de..99ce54b93c72db540e5678a334228698c0c8c2b9 100644
--- a/chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager.cc
+++ b/chrome/browser/chromeos/login/easy_unlock/easy_unlock_tpm_key_manager.cc
@@ -6,6 +6,7 @@
#include <cryptohi.h>
#include <keyhi.h>
+#include <stdint.h>
#include "base/base64.h"
#include "base/bind.h"
@@ -86,10 +87,10 @@ crypto::ScopedSECKEYPrivateKey GetPrivateKeyOnWorkerThread(
const std::string& public_key) {
CHECK(slot);
- const uint8* public_key_uint8 =
- reinterpret_cast<const uint8*>(public_key.data());
- std::vector<uint8> public_key_vector(
- public_key_uint8, public_key_uint8 + public_key.size());
+ const uint8_t* public_key_uint8 =
+ reinterpret_cast<const uint8_t*>(public_key.data());
+ std::vector<uint8_t> public_key_vector(public_key_uint8,
+ public_key_uint8 + public_key.size());
crypto::ScopedSECKEYPrivateKey rsa_key(
crypto::FindNSSKeyFromPublicKeyInfoInSlot(public_key_vector, slot));

Powered by Google App Engine
This is Rietveld 408576698