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

Unified Diff: content/browser/bluetooth/bluetooth_dispatcher_host.cc

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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: content/browser/bluetooth/bluetooth_dispatcher_host.cc
diff --git a/content/browser/bluetooth/bluetooth_dispatcher_host.cc b/content/browser/bluetooth/bluetooth_dispatcher_host.cc
index 7758a3e2c31d819b30e159fd32921471854a9046..3f93b2b2e7e9c5e15d0bf50431a316ba00ab4553 100644
--- a/content/browser/bluetooth/bluetooth_dispatcher_host.cc
+++ b/content/browser/bluetooth/bluetooth_dispatcher_host.cc
@@ -11,6 +11,8 @@
#include "content/browser/bluetooth/bluetooth_dispatcher_host.h"
+#include <stddef.h>
+
#include <utility>
#include "base/bind.h"
@@ -537,7 +539,7 @@ void BluetoothDispatcherHost::GattServicesDiscovered(
void BluetoothDispatcherHost::GattCharacteristicValueChanged(
device::BluetoothAdapter* adapter,
device::BluetoothGattCharacteristic* characteristic,
- const std::vector<uint8>& value) {
+ const std::vector<uint8_t>& value) {
VLOG(1) << "Characteristic updated: " << characteristic->GetIdentifier();
auto iter =
active_characteristic_threads_.find(characteristic->GetIdentifier());
@@ -565,7 +567,7 @@ void BluetoothDispatcherHost::GattCharacteristicValueChanged(
void BluetoothDispatcherHost::NotifyActiveCharacteristic(
int thread_id,
const std::string& characteristic_instance_id,
- const std::vector<uint8>& value) {
+ const std::vector<uint8_t>& value) {
Send(new BluetoothMsg_CharacteristicValueChanged(
thread_id, characteristic_instance_id, value));
}
@@ -819,7 +821,7 @@ void BluetoothDispatcherHost::OnGetCharacteristic(
// https://crbug.com/495379
Send(new BluetoothMsg_GetCharacteristicSuccess(
thread_id, request_id, characteristic_instance_id,
- static_cast<uint32>(characteristic->GetProperties())));
+ static_cast<uint32_t>(characteristic->GetProperties())));
return;
}
}
@@ -1180,7 +1182,7 @@ void BluetoothDispatcherHost::AddToServicesMapAndSendGetPrimaryServiceSuccess(
void BluetoothDispatcherHost::OnCharacteristicValueRead(
int thread_id,
int request_id,
- const std::vector<uint8>& value) {
+ const std::vector<uint8_t>& value) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
RecordCharacteristicReadValueOutcome(UMAGATTOperationOutcome::SUCCESS);
Send(new BluetoothMsg_ReadCharacteristicValueSuccess(thread_id, request_id,
« no previous file with comments | « content/browser/bluetooth/bluetooth_dispatcher_host.h ('k') | content/browser/bluetooth/bluetooth_metrics.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698