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

Unified Diff: device/usb/webusb_descriptors.h

Issue 1851933002: Convert //url to use std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU fixup 7 Created 4 years, 9 months 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 | « content/shell/browser/layout_test/test_info_extractor.cc ('k') | extensions/renderer/dom_activity_logger.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/webusb_descriptors.h
diff --git a/device/usb/webusb_descriptors.h b/device/usb/webusb_descriptors.h
index a13440ce8bf44318e02349a91ef0897b1a9809bb..c88b1f97389dd022677d7edb4a499a7a970bcdde 100644
--- a/device/usb/webusb_descriptors.h
+++ b/device/usb/webusb_descriptors.h
@@ -6,6 +6,8 @@
#define DEVICE_USB_WEBUSB_DESCRIPTORS_H_
#include <stdint.h>
+
+#include <memory>
#include <vector>
#include "base/callback_forward.h"
@@ -64,8 +66,9 @@ bool ParseWebUsbUrlDescriptor(const std::vector<uint8_t>& bytes, GURL* output);
void ReadWebUsbDescriptors(
scoped_refptr<UsbDeviceHandle> device_handle,
- const base::Callback<void(scoped_ptr<WebUsbAllowedOrigins> allowed_origins,
- const GURL& landing_page)>& callback);
+ const base::Callback<
+ void(std::unique_ptr<WebUsbAllowedOrigins> allowed_origins,
+ const GURL& landing_page)>& callback);
// Check if the origin is allowed.
bool FindInWebUsbAllowedOrigins(
« no previous file with comments | « content/shell/browser/layout_test/test_info_extractor.cc ('k') | extensions/renderer/dom_activity_logger.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698