Remove deprecated base::[Dictionary|List]Value API usage

This commit is contained in:
Marshall Greenblatt
2023-01-30 16:42:40 -05:00
parent 36ee304ed4
commit 4c41f14360
34 changed files with 387 additions and 375 deletions

View File

@@ -64,16 +64,15 @@ int CefScrollViewImpl::GetVerticalScrollbarWidth() {
return root_view()->GetScrollBarLayoutWidth();
}
void CefScrollViewImpl::GetDebugInfo(base::DictionaryValue* info,
void CefScrollViewImpl::GetDebugInfo(base::Value::Dict* info,
bool include_children) {
ParentClass::GetDebugInfo(info, include_children);
if (include_children) {
views::View* view = root_view()->contents();
CefViewAdapter* adapter = CefViewAdapter::GetFor(view);
if (adapter) {
std::unique_ptr<base::DictionaryValue> child_info(
new base::DictionaryValue());
adapter->GetDebugInfo(child_info.get(), include_children);
base::Value::Dict child_info;
adapter->GetDebugInfo(&child_info, include_children);
info->Set("content_view", std::move(child_info));
}
}