refactor: replace deprecated base::Value::Set<Type>Key usage (#37570)
Co-authored-by: Milan Burda <miburda@microsoft.com>
This commit is contained in:
parent
061e2e5e73
commit
6dc46e5bcf
5 changed files with 52 additions and 62 deletions
|
@ -18,7 +18,7 @@ struct Converter<device::mojom::HidDeviceInfoPtr> {
|
|||
v8::Isolate* isolate,
|
||||
const device::mojom::HidDeviceInfoPtr& device) {
|
||||
base::Value value = electron::HidChooserContext::DeviceInfoToValue(*device);
|
||||
value.SetStringKey(
|
||||
value.GetDict().Set(
|
||||
"deviceId",
|
||||
electron::HidChooserController::PhysicalDeviceIdFromDeviceInfo(
|
||||
*device));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue