Update source files for bracket style

This commit is contained in:
Marshall Greenblatt
2023-01-02 17:59:03 -05:00
parent d84b07a5cb
commit 3af3eab3e4
366 changed files with 7275 additions and 3834 deletions

View File

@ -23,8 +23,9 @@ void CefRequestContextHandlerMap::RemoveHandler(
DCHECK(frame_util::IsValidGlobalId(global_id));
auto it1 = render_id_handler_map_.find(global_id);
if (it1 != render_id_handler_map_.end())
if (it1 != render_id_handler_map_.end()) {
render_id_handler_map_.erase(it1);
}
}
CefRefPtr<CefRequestContextHandler> CefRequestContextHandlerMap::GetHandler(
@ -32,15 +33,17 @@ CefRefPtr<CefRequestContextHandler> CefRequestContextHandlerMap::GetHandler(
bool require_frame_match) const {
if (frame_util::IsValidGlobalId(global_id)) {
const auto it1 = render_id_handler_map_.find(global_id);
if (it1 != render_id_handler_map_.end())
if (it1 != render_id_handler_map_.end()) {
return it1->second;
}
}
if (frame_util::IsValidChildId(global_id.child_id) && !require_frame_match) {
// Choose an arbitrary handler for the same process.
for (auto& kv : render_id_handler_map_) {
if (kv.first.child_id == global_id.child_id)
if (kv.first.child_id == global_id.child_id) {
return kv.second;
}
}
}