mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Fix transposed variables in GetRequestInfo (fixes issue #2530)
This commit is contained in:
@@ -858,8 +858,8 @@ class CefMessageRouterRendererSideImpl : public CefMessageRouterRendererSide {
|
|||||||
// if the query is non-persistent. If |removed| is true the caller is
|
// if the query is non-persistent. If |removed| is true the caller is
|
||||||
// responsible for deleting the returned QueryInfo object.
|
// responsible for deleting the returned QueryInfo object.
|
||||||
RequestInfo* GetRequestInfo(int browser_id,
|
RequestInfo* GetRequestInfo(int browser_id,
|
||||||
int request_id,
|
|
||||||
int context_id,
|
int context_id,
|
||||||
|
int request_id,
|
||||||
bool always_remove,
|
bool always_remove,
|
||||||
bool* removed) {
|
bool* removed) {
|
||||||
class Visitor : public BrowserRequestInfoMap::Visitor {
|
class Visitor : public BrowserRequestInfoMap::Visitor {
|
||||||
@@ -884,7 +884,7 @@ class CefMessageRouterRendererSideImpl : public CefMessageRouterRendererSide {
|
|||||||
|
|
||||||
Visitor visitor(always_remove);
|
Visitor visitor(always_remove);
|
||||||
RequestInfo* info = browser_request_info_map_.Find(
|
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)
|
if (info)
|
||||||
*removed = visitor.removed();
|
*removed = visitor.removed();
|
||||||
return info;
|
return info;
|
||||||
|
Reference in New Issue
Block a user