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

Unified Diff: device/bluetooth/dbus/bluetooth_gatt_characteristic_client.cc

Issue 1542163002: Switch to standard integer types in device/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win 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: device/bluetooth/dbus/bluetooth_gatt_characteristic_client.cc
diff --git a/device/bluetooth/dbus/bluetooth_gatt_characteristic_client.cc b/device/bluetooth/dbus/bluetooth_gatt_characteristic_client.cc
index d6229a3aed018d7ef2b10b3ebb256643f6f72e48..afc31eab09afad2ddaef16f1c374ac06ed7ffb0d 100644
--- a/device/bluetooth/dbus/bluetooth_gatt_characteristic_client.cc
+++ b/device/bluetooth/dbus/bluetooth_gatt_characteristic_client.cc
@@ -4,7 +4,10 @@
#include "device/bluetooth/dbus/bluetooth_gatt_characteristic_client.h"
+#include <stddef.h>
+
#include "base/bind.h"
+#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/observer_list.h"
#include "dbus/bus.h"
@@ -111,7 +114,7 @@ class BluetoothGattCharacteristicClientImpl
// BluetoothGattCharacteristicClient override.
void WriteValue(const dbus::ObjectPath& object_path,
- const std::vector<uint8>& value,
+ const std::vector<uint8_t>& value,
const base::Closure& callback,
const ErrorCallback& error_callback) override {
dbus::ObjectProxy* object_proxy =
@@ -246,13 +249,13 @@ class BluetoothGattCharacteristicClientImpl
DCHECK(response);
dbus::MessageReader reader(response);
- const uint8* bytes = NULL;
+ const uint8_t* bytes = NULL;
size_t length = 0;
if (!reader.PopArrayOfBytes(&bytes, &length))
VLOG(2) << "Error reading array of bytes in ValueCallback";
- std::vector<uint8> value;
+ std::vector<uint8_t> value;
if (bytes)
value.assign(bytes, bytes + length);

Powered by Google App Engine
This is Rietveld 408576698