Index: content/browser/security_exploit_browsertest.cc |
diff --git a/content/browser/security_exploit_browsertest.cc b/content/browser/security_exploit_browsertest.cc |
index 6714e9a086a737607f6947d6fdf8d1608742ee9e..a2ca9285b1e37a6304998bcfc9fe2d08f7704e3a 100644 |
--- a/content/browser/security_exploit_browsertest.cc |
+++ b/content/browser/security_exploit_browsertest.cc |
@@ -139,12 +139,7 @@ void TryCreateDuplicateRequestIds(Shell* shell, bool block_loaders) { |
if (block_loaders) { |
// Test the case where loaders are placed into blocked_loaders_map_. |
- int child_id = rfh->GetProcess()->GetID(); |
- BrowserThread::PostTask( |
- BrowserThread::IO, FROM_HERE, |
- base::Bind(&ResourceDispatcherHost::BlockRequestsForRoute, |
- base::Unretained(ResourceDispatcherHost::Get()), child_id, |
- rfh->GetRoutingID())); |
+ ResourceDispatcherHost::BlockRequestsForFrameFromUI(rfh); |
} |
// URLRequestSlowDownloadJob waits for another request to kFinishDownloadUrl |