Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(741)

Unified Diff: content/browser/security_exploit_browsertest.cc

Issue 1542743002: [RDHI] Refactored blocked_loaders_map_ to key by render frame route id (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nasko nit Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698