3687395: Remove DictionaryValue::HasKey().

Ref: https://chromium-review.googlesource.com/c/chromium/src/+/3687395
This commit is contained in:
Keeley Hammond
2022-06-13 12:52:29 -07:00
parent 74c45acd08
commit 2a6804db60

View File

@@ -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)));