mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
3687395: Remove DictionaryValue::HasKey().
Ref: https://chromium-review.googlesource.com/c/chromium/src/+/3687395
This commit is contained in:
@@ -49,7 +49,7 @@ void GPUInfoEnumerator::EndGPUDevice() {
|
||||
auto& top_value = value_stack.top();
|
||||
// GPUDevice can be more than one. So create a list of all.
|
||||
// The first one is the active GPU device.
|
||||
if (top_value->HasKey(kGPUDeviceKey)) {
|
||||
if (top_value->FindKey(kGPUDeviceKey)) {
|
||||
base::ListValue* list;
|
||||
top_value->GetList(kGPUDeviceKey, &list);
|
||||
list->Append(base::Value::FromUniquePtrValue(std::move(current)));
|
||||
|
||||
Reference in New Issue
Block a user