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

Unified Diff: chromeos/cryptohome/system_salt_getter.cc

Issue 1540803002: Switch to standard integer types in chromeos/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more includes 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 | « chromeos/cryptohome/system_salt_getter.h ('k') | chromeos/dbus/amplifier_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/cryptohome/system_salt_getter.cc
diff --git a/chromeos/cryptohome/system_salt_getter.cc b/chromeos/cryptohome/system_salt_getter.cc
index b0bbc9e9b8261c833cf5ce73dc469314de721f34..0e79fc1298e1be01d350e7951b3e36667901d4cf 100644
--- a/chromeos/cryptohome/system_salt_getter.cc
+++ b/chromeos/cryptohome/system_salt_getter.cc
@@ -4,6 +4,8 @@
#include "chromeos/cryptohome/system_salt_getter.h"
+#include <stdint.h>
+
#include "base/bind.h"
#include "base/location.h"
#include "base/single_thread_task_runner.h"
@@ -54,9 +56,10 @@ void SystemSaltGetter::DidWaitForServiceToBeAvailable(
callback));
}
-void SystemSaltGetter::DidGetSystemSalt(const GetSystemSaltCallback& callback,
- DBusMethodCallStatus call_status,
- const std::vector<uint8>& system_salt) {
+void SystemSaltGetter::DidGetSystemSalt(
+ const GetSystemSaltCallback& callback,
+ DBusMethodCallStatus call_status,
+ const std::vector<uint8_t>& system_salt) {
if (call_status == DBUS_METHOD_CALL_SUCCESS &&
!system_salt.empty() &&
system_salt.size() % 2 == 0U)
@@ -94,7 +97,7 @@ SystemSaltGetter* SystemSaltGetter::Get() {
// static
std::string SystemSaltGetter::ConvertRawSaltToHexString(
- const std::vector<uint8>& salt) {
+ const std::vector<uint8_t>& salt) {
return base::ToLowerASCII(
base::HexEncode(reinterpret_cast<const void*>(salt.data()), salt.size()));
}
« no previous file with comments | « chromeos/cryptohome/system_salt_getter.h ('k') | chromeos/dbus/amplifier_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698