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

Unified Diff: content/browser/loader/resource_scheduler.cc

Issue 2655393004: Make ResourceScheduler work in OOPIF (Closed)
Patch Set: Make ResourceScheduler work in OOPIF Created 3 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
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler_filter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_scheduler.cc
diff --git a/content/browser/loader/resource_scheduler.cc b/content/browser/loader/resource_scheduler.cc
index 1cd91c3e6c0b7725ae9ea25d32ae004930c45e8b..6973687cb719a615ca3675eec90e37d80ff89714 100644
--- a/content/browser/loader/resource_scheduler.cc
+++ b/content/browser/loader/resource_scheduler.cc
@@ -421,6 +421,10 @@ class ResourceScheduler::Client {
}
void OnWillInsertBody() {
+ // Can be called multiple times per RVH in the case of out-of-process
+ // iframes.
+ if (has_html_body_)
+ return;
has_html_body_ = true;
LoadAnyStartablePendingRequests(RequestStartTrigger::BODY_REACHED);
}
« no previous file with comments | « no previous file | content/browser/loader/resource_scheduler_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698