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

Unified Diff: device/serial/serial_device_enumerator_mac.cc

Issue 2492013005: Mojo C++ bindings: switch device/serial mojom target to use STL types. (Closed)
Patch Set: \ Created 4 years, 1 month 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/serial/serial_device_enumerator_linux.cc ('k') | device/serial/serial_device_enumerator_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_device_enumerator_mac.cc
diff --git a/device/serial/serial_device_enumerator_mac.cc b/device/serial/serial_device_enumerator_mac.cc
index bea252e5648b7c99ddf9a75e8d25724634792134..4bf3e5ed43e5646ff98a71c25fe369709d9e4c37 100644
--- a/device/serial/serial_device_enumerator_mac.cc
+++ b/device/serial/serial_device_enumerator_mac.cc
@@ -137,7 +137,7 @@ mojo::Array<serial::DeviceInfoPtr> GetDevicesNew() {
mojo::String displayName;
if (GetStringProperty(scoped_device.get(), CFSTR(kUSBProductString),
&displayName)) {
- callout_info->display_name = displayName;
+ callout_info->display_name = displayName.PassStorage();
}
// Each serial device has two "paths" in /dev/ associated with it: a
« no previous file with comments | « device/serial/serial_device_enumerator_linux.cc ('k') | device/serial/serial_device_enumerator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698