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..911f51a0e9363efcbbbd2012610c02c711888e81 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::BlockRequestsForFramesFromUI(rfh); |
} |
// URLRequestSlowDownloadJob waits for another request to kFinishDownloadUrl |