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

Unified Diff: device/usb/usb_service_impl.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
« no previous file with comments | « device/usb/usb_service_impl.h ('k') | device/usb/webusb_descriptors.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/usb_service_impl.cc
diff --git a/device/usb/usb_service_impl.cc b/device/usb/usb_service_impl.cc
index 97700078d0d6e5aa113a7b36031924f719777818..1f6ca57f2a7788febab8a0e6786ea3b8a4cb3859 100644
--- a/device/usb/usb_service_impl.cc
+++ b/device/usb/usb_service_impl.cc
@@ -4,6 +4,8 @@
#include "device/usb/usb_service_impl.h"
+#include <stdint.h>
+
#include <list>
#include <set>
@@ -16,6 +18,7 @@
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/thread_task_runner_handle.h"
+#include "build/build_config.h"
#include "components/device_event_log/device_event_log.h"
#include "device/usb/usb_device_handle.h"
#include "device/usb/usb_error.h"
@@ -125,7 +128,7 @@ void OnReadStringDescriptor(
base::string16 string;
if (status == USB_TRANSFER_COMPLETED &&
ParseUsbStringDescriptor(
- std::vector<uint8>(buffer->data(), buffer->data() + length),
+ std::vector<uint8_t>(buffer->data(), buffer->data() + length),
&string)) {
callback.Run(string);
} else {
@@ -192,7 +195,7 @@ void OnReadWebUsbAllowedOrigins(scoped_refptr<UsbDevice> device,
scoped_ptr<WebUsbDescriptorSet> descriptors(new WebUsbDescriptorSet());
if (descriptors->Parse(
- std::vector<uint8>(buffer->data(), buffer->data() + length))) {
+ std::vector<uint8_t>(buffer->data(), buffer->data() + length))) {
UsbDeviceImpl* device_impl = static_cast<UsbDeviceImpl*>(device.get());
device_impl->set_webusb_allowed_origins(descriptors.Pass());
}
@@ -247,7 +250,7 @@ void OnReadBosDescriptor(scoped_refptr<UsbDeviceHandle> device_handle,
WebUsbPlatformCapabilityDescriptor descriptor;
if (!descriptor.ParseFromBosDescriptor(
- std::vector<uint8>(buffer->data(), buffer->data() + length))) {
+ std::vector<uint8_t>(buffer->data(), buffer->data() + length))) {
callback.Run();
return;
}
« no previous file with comments | « device/usb/usb_service_impl.h ('k') | device/usb/webusb_descriptors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698