Fix transposed variables in GetRequestInfo (fixes issue #2530)

This commit is contained in:
Marshall Greenblatt
2020-04-23 14:37:05 -04:00
parent 56f4784cae
commit c0b313d1bf

View File

@@ -858,8 +858,8 @@ class CefMessageRouterRendererSideImpl : public CefMessageRouterRendererSide {
// if the query is non-persistent. If |removed| is true the caller is
// responsible for deleting the returned QueryInfo object.
RequestInfo* GetRequestInfo(int browser_id,
int request_id,
int context_id,
int request_id,
bool always_remove,
bool* removed) {
class Visitor : public BrowserRequestInfoMap::Visitor {
@@ -884,7 +884,7 @@ class CefMessageRouterRendererSideImpl : public CefMessageRouterRendererSide {
Visitor visitor(always_remove);
RequestInfo* info = browser_request_info_map_.Find(
browser_id, std::make_pair(request_id, context_id), &visitor);
browser_id, std::make_pair(context_id, request_id), &visitor);
if (info)
*removed = visitor.removed();
return info;