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

Side by Side Diff: device/devices_app/usb/type_converters.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "device/devices_app/usb/type_converters.h" 5 #include "device/devices_app/usb/type_converters.h"
6 6
7 #include <stddef.h>
8 #include <stdint.h>
9
7 #include <map> 10 #include <map>
8 #include <utility> 11 #include <utility>
9 12
10 #include "base/logging.h" 13 #include "base/logging.h"
11 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
12 #include "device/usb/usb_device.h" 15 #include "device/usb/usb_device.h"
13 #include "mojo/common/url_type_converters.h" 16 #include "mojo/common/url_type_converters.h"
14 #include "mojo/public/cpp/bindings/array.h" 17 #include "mojo/public/cpp/bindings/array.h"
15 18
16 namespace mojo { 19 namespace mojo {
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 info->configurations = mojo::Array<device::usb::ConfigurationInfoPtr>::From( 261 info->configurations = mojo::Array<device::usb::ConfigurationInfoPtr>::From(
259 device.configurations()); 262 device.configurations());
260 if (device.webusb_allowed_origins()) { 263 if (device.webusb_allowed_origins()) {
261 info->webusb_allowed_origins = device::usb::WebUsbDescriptorSet::From( 264 info->webusb_allowed_origins = device::usb::WebUsbDescriptorSet::From(
262 *device.webusb_allowed_origins()); 265 *device.webusb_allowed_origins());
263 } 266 }
264 return info.Pass(); 267 return info.Pass();
265 } 268 }
266 269
267 } // namespace mojo 270 } // namespace mojo
OLDNEW
« no previous file with comments | « device/devices_app/usb/fake_permission_provider.cc ('k') | device/hid/fake_input_service_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698