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

Unified Diff: chromeos/dbus/easy_unlock_client.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/dbus/easy_unlock_client.h ('k') | chromeos/dbus/fake_amplifier_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromeos/dbus/easy_unlock_client.cc
diff --git a/chromeos/dbus/easy_unlock_client.cc b/chromeos/dbus/easy_unlock_client.cc
index c05b25734687eac16820d1f3785f454c358cf433..df0a510d88aef8128cd3274d5e216c773e8e44de 100644
--- a/chromeos/dbus/easy_unlock_client.cc
+++ b/chromeos/dbus/easy_unlock_client.cc
@@ -4,10 +4,14 @@
#include "chromeos/dbus/easy_unlock_client.h"
+#include <stddef.h>
+#include <stdint.h>
+
#include <vector>
#include "base/bind.h"
#include "base/compiler_specific.h"
+#include "base/macros.h"
#include "dbus/bus.h"
#include "dbus/message.h"
#include "dbus/object_path.h"
@@ -20,7 +24,7 @@ namespace {
// Reads array of bytes from a dbus message reader and converts it to string.
std::string PopResponseData(dbus::MessageReader* reader) {
- const uint8* bytes = NULL;
+ const uint8_t* bytes = NULL;
size_t length = 0;
if (!reader->PopArrayOfBytes(&bytes, &length))
return "";
@@ -31,7 +35,7 @@ std::string PopResponseData(dbus::MessageReader* reader) {
// Converts string to array of bytes and writes it using dbus meddage writer.
void AppendStringAsByteArray(const std::string& data,
dbus::MessageWriter* writer) {
- writer->AppendArrayOfBytes(reinterpret_cast<const uint8*>(data.data()),
+ writer->AppendArrayOfBytes(reinterpret_cast<const uint8_t*>(data.data()),
data.length());
}
« no previous file with comments | « chromeos/dbus/easy_unlock_client.h ('k') | chromeos/dbus/fake_amplifier_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698